dkern / jquery.lazy

A lightweight, fast, feature-rich, powerful and highly configurable delayed content, image and background lazy loading plugin for jQuery & Zepto.
http://jquery.eisbehr.de/lazy
Other
1.02k stars 236 forks source link

images aren't shown if they doesn't come to visibility by scroll #254

Closed paolobenve closed 2 years ago

paolobenve commented 2 years ago

Reproduce in chrome:

paolobenve commented 2 years ago

actually a work around could be $(window).scroll();, but when/how should it be executed?

dkern commented 2 years ago

Lazy only listens to scroll event, not DOM changes. So the described behavior is correct. If you do any changes to the content use scroll() as you wrote, or use lazy.update() public function.