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
Post a Comment