jQuery LazyLoad images in a hidden div

Posted by xyzzy on Stack Overflow See other posts from Stack Overflow or by xyzzy
Published on 2010-04-18T15:06:06Z Indexed on 2010/04/18 15:13 UTC
Read the original article Hit count: 442

Filed under:
|

I have a bunch of images that are in a hidden div. The div is shown when the user clicks on some links.

I'd like to jQuery lazyload to hide these images until the link is clicked and the hidden div is exposed. But, if I use lazyload according to the documentation, the images are always loaded as the hidden div is in the viewport, presumably.

any ideas?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about lazy-loading