WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Image Lazy Load WP
Lazyload with infinte scroll how? (1 post)

  1. jeriksson
    Member
    Posted 2 years ago #

    Hi,

    I use infinte scroll to load content on the fly, the issue is when the next set of content is called for lazy load will not apply to the set of images.

    The infinte scroll has a ability to call a new set of javascript for each load of new content, but when i put the javascript: `jQuery(document).ready(function($){
    if (navigator.platform == "iPad") return;
    jQuery("#main").find("img").lazyload({
    effect:"fadeIn",
    placeholder: "$placeholdergif"
    });
    });`

    In there it all goes haywire, i think it's because it thinks everything on the page is new content and applies the faded gif image over all images again (even the old ones the user has passed).

    How can i change the code to only apply the fade effect for the content below the point of loading?

    http://wordpress.org/extend/plugins/jquery-image-lazy-loading/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic