Any idea why my Lazyload is not working?

Does anyone know why my lazy workload is not working?

I copied exactly from the lazy download page, even using their images as a test, they just load into the normal and not disappear ...?

lazy link example

Then I put the conflict without a script, as it fell out too, nothing there that fixed it ...

It just disappears slightly, at first the rest of the images do nothing :(

Very strange..

+3
source share
3 answers

I took another look:

jQuery.noConflict();

jQuery(document).ready(function(){
  jQuery(function() {           // <-- what this doing here?
    jQuery("img").lazyload({
        placeholder: "/images/blank.gif",
        effect: "fadeIn",
        failurelimit: 1,
        threshold: -20
    });
  });
});

You set the onload event in the onload handler, which is odd. Remove it and it can work

+2
source

LazyLoad no longer works ...

, dom.

http://www.appelsiini.net/projects/lazyload

... ...

Lazy Load . , . . . fork pull. !

+2

It may also be worth checking out this plugin called JAIL Lazy Image Upload

0
source

Source: https://habr.com/ru/post/1771949/


All Articles