ressio / lazy-load-xt

Lazy load XT is a jQuery plugin for images, videos and other media
http://ress.io/lazy-load-xt-jquery/
MIT License
1.36k stars 243 forks source link

srcset addon doesn't trigger lazyload event #2

Closed danielguillan closed 10 years ago

danielguillan commented 10 years ago

I'm using the srcset addon to load images on my website and wanted to fade-in images once loaded. I realized that the lazy-hidden class is added when the lazyshow event is triggered but the lazyload event never gets triggered thus the class for the image never changes to lazy-loaded.

Same problem occurs in the demo: http://ressio.github.io/lazy-load-xt/demo/srcset.htm

Is this the desired behavior? If not, is there a workaround for this?

Thanks!

dryabov commented 10 years ago

Try this version: https://raw2.github.com/ressio/lazy-load-xt/dd2c1b8bddb4cd5194c8a219d0501f0352d408e6/src/jquery.lazyloadxt.srcset.js

danielguillan commented 10 years ago

Works great!