WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jchew
    Member
    Posted 2 years ago #

    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.

    http://wordpress.org/extend/plugins/lazy-load/

  2. danielmichel
    Member
    Posted 1 year ago #

    Ever figure this out?

  3. jchew
    Member
    Posted 1 year ago #

    I didn't, unfortunately.

  4. danielmichel
    Member
    Posted 1 year ago #

    Been emailing people who seem to have managed it

  5. jchew
    Member
    Posted 1 year ago #

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

  6. danielmichel
    Member
    Posted 1 year 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

About this Topic