• Hello,

    First of all thanks for the plugin, it’s awesome!

    In my site, I need to refresh the whole page every time someone resizes the window. The following code worked just fine in doing that:
    window.onresize = function(){ location.reload(); }

    However, in the pages with a foogallery, the script gets into a loop and keeps refreshing the page over and over.
    I thought that maybe when the foogallery is loaded, it somehow resizes the window? To avoid this, I tried waiting for the whole page to load, and used the following code:

    window.onload = function(){
    window.onresize = function(){ location.reload(); }
    };

    But the problem persists. Could you please help me out?

    Thanks in advance 🙂

The topic ‘Problem with window.onresize’ is closed to new replies.