[Plugin: Lazy Load] How to account for images that change position dynamically
-
Hello,
I am wondering how I might go about having Lazy Load reassess the position of images on a page after I have used some JavaScript to reposition the images or otherwise change the DOM.
As an example, when using the jQuery Isotope plugin to create a masonry grid and then filter items in and out of said grid, it seems as if Lazy Load calculates the original image position relative to the viewport on page load and will not load the image until you’ve scrolled to that point. So if the filtering happens to bring the element containing that image closer to the top of the document, the image will not get loaded until you scroll down to where it originally was (if the document is even that long anymore). I am hoping there is some way to reinitialize the Lazy Load plugin or at least have it recalculate the image positions after some DOM manipulation has occurred.
Thank you.
- The topic ‘[Plugin: Lazy Load] How to account for images that change position dynamically’ is closed to new replies.