lazyload-rails icon indicating copy to clipboard operation
lazyload-rails copied to clipboard

Lazy load waits until all ads are loaded before start load images

Open Rubioli opened this issue 9 years ago • 2 comments

Lazy loads works great when I don't have ads on the page but in my case I have 7 ads on my page and lazy load "waits" until all the ads has loaded done before it starts to load the images.

I did this:

$("img.lazy").lazyload({
        event : "load-delay"
 });

$(window).bind("load", function() {
       var timeout = setTimeout(function() { $("img.lazy").trigger("load-delay") }, 1500);
});

But it still does the same thing, waiting for ads to get loads first and it actually make my load-time speed double.

How can I make the lazy load so it load before ads and don't wait for ads to load first.

Great Gem!

Rubioli avatar Jul 29 '16 11:07 Rubioli

I think it is related to the lazy load plug-in itself.

bnymn avatar Sep 03 '16 10:09 bnymn

@Rubioli did you find a solution for this? We're experiencing the same issue. @rderoldan1 @Rikku-1

rohr avatar Jul 03 '18 06:07 rohr