WordPress.org

Ready to get started?Download WordPress

Forums

BJ Lazy Load
Adding a time delay to determine load/not load (2 posts)

  1. witaytom1
    Member
    Posted 11 months ago #

    First, thanks for the plugin.

    My question is this:
    Is there a way of inserting a brief time delay so that, if an image gets scrolled over/past (out of view) quick enough, it does not load (i.e. images only load if they are on the screen for a determined length of time)?

    I appreciate any suggestions/help you might be able to offer up. Or if you could just point me in the right direction, that would be great.
    Thanks

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

  2. Bjørn Johansen
    Member
    Plugin Author

    Posted 11 months ago #

    This would require a rewrite of the javascript in this manner:
    When the image enter the bounds, set a timeout with a callback. The callback checks whether the image is still within the bounds and if it is, loads the image.

Reply

You must log in to post.

About this Plugin

About this Topic