Jezthomp
Jezthomp

Reputation: 709

Any idea why my Lazyload is not working?

Anyone have any idea why my lazy load does not seem to be working?

I copied exactly from the lazy load page even using their images as a test, they just load in normal rather than fade...?

lazy link example

I then put a no conflict script in as i have drop down as well, nothing there either which fixed it...

Just loosely fades in first the rest of the images do nothing :(

Very odd..

Upvotes: 3

Views: 14829

Answers (3)

Gab
Gab

Reputation: 29

LazyLoad doesn't work anymore...

Modern browser download images before the dom loaded event occours.

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

... the author says...

Lazy Load is currently not usable. It does not work with the latest browsers as expected. I have currently no time updating the code myself. Patches are always welcome. If you find a solution just fork and send a pull request. Thanks!

Upvotes: 2

sebarmeli
sebarmeli

Reputation: 18265

It may also worth it to check out this plugin called JAIL lazy loads images

Upvotes: 0

Harmen
Harmen

Reputation: 22438

Taken another look:

jQuery.noConflict();

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

You're setting an onload event in your onload handler, that's odd. Remove it and it may work

Upvotes: 2

Related Questions