Ready to get started?Download WordPress


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

  1. witaytom1
    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.


  2. Bjørn Johansen
    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.


You must log in to post.

About this Plugin

About this Topic