javascript - $(window).load never called in Chrome -


in rails app, i've noticed pages have lot of images , videos, $(window).load never gets called when page loaded in chrome.

i'm lazy-loading of images , videos on page try mitigate problem, pages not load.

you can test page, load in firefox; in safari, takes little longer loads. chrome, never loads.

http://buildinprogress.media.mit.edu/projects/2330/steps

this have in $(window).load:

  $(window).load(function(){     console.log('loaded');      // remove loading animation     if($('#loading').css('display')!='none'){         $('#loading').fadeout(400, function(){              $('#main').animate({opacity:1});         });     }else{         $('#main').css('opacity',1);     }      ...  }); 


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -