Lazy Load
How to account for images that change position dynamically (6 posts)

  1. jchew
    Posted 4 years ago #


    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.


  2. danielmichel
    Posted 3 years ago #

    Ever figure this out?

  3. jchew
    Posted 3 years ago #

    I didn't, unfortunately.

  4. danielmichel
    Posted 3 years ago #

    Been emailing people who seem to have managed it

  5. jchew
    Posted 3 years ago #

    nice, do share if you get it working! it'd be useful information for sure! thanks.

  6. danielmichel
    Posted 3 years ago #

    Doubt anyone will help, but I sure will if I get it working

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Lazy Load
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic