• Resolved macspert

    (@macspert)


    Hi,
    I had difficulties with BJ Lazy Load – and found your version – excellent.
    It covers almost everything I need – except for loading images a bit earlier – too let the user see a bit less of the actual loading.
    I’m using a hack to make it work for me, but I think it would be a worthwhile addition to your project to add this to the admin side: number of pixels from viewport to start loading…
    This is what my hack looks like in jquery.lazyloadxt.min.js – before:
    u = i >= l && v.bottom > - y && v.left <= k + x && v.right > - x
    after:
    u = i + 400 >= l && v.bottom > - y && v.left <= k + x && v.right > - x
    Regards

    PS: you can see it working on mamanvoyage (French site)

    https://wordpress.org/plugins/lazy-load-xt/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dbhynds

    (@dbhynds)

    Thanks for the request. You’re actually the second person to request this feature. I’m working on building in advanced functionality for the 1.0 release. In the meantime, it’s possible to achieve the effect you describe above without modifying jquery.lazyloadxt.min.js. Just add this to your theme’s javascript file, or add it inline in your theme:

    jQuery.extend(jQuery.lazyLoadXT, {
      edgeY:  400
    });
    Plugin Author dbhynds

    (@dbhynds)

    Oh, here’s a link to the github page explaining this in further detail:
    https://github.com/ressio/lazy-load-xt#options

    Thread Starter macspert

    (@macspert)

    thanks for the quick solution

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Feature request – load just before entering viewport’ is closed to new replies.