Why doesn't Lazyload show photos?

I tried the whole solution specified in stackoverflow.

I also tried the alternative http://luis-almeida.imtqy.com/unveil/

But the problem is still the same. If I do not resize the window (or $ (window) .resize () in the console), the image is not displayed. However, if I set the threshold to 300, the images in the first 300 pixels will be displayed, not the others ...

The strangest thing is that the problem is the same for 2 plugins.

Any suggestion?

+4
1

, , , lazyload

lazyload setInterval window.load.

var interval = setInterval(function(){
    $("img.lazy").lazyload();
    clearInterval(interval);
},1000);
0

All Articles