WordPress.org

Support

Support » Plugins and Hacks » BJ Lazy Load » [Resolved] set the threshold (so image are loaded earlier)

[Resolved] set the threshold (so image are loaded earlier)

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Bjørn Johansen

    @bjornjohansen

    There is currently no option in the plugin for adjusting the threshold. But before a major rewrite, the option existed in a previous version. I will try to get it back soon. It wasn’t proritized, as I thought nobody used that 🙂

    BTW: The project on that link is totally unrelated

    Thanks for your response.

    I am a llittle bit into php/javascript so if there a few line to add, I could do it…

    If you have a link I follow it, if I have to wait for the nexte version, I will wait

    Plugin Author Bjørn Johansen

    @bjornjohansen

    Edit line 8 in js/bj-lazy-load.js where it says “distance: 200”. The number is the threshold in pixels.
    Then minify sonar.js and bj-lazy-load.js and combine them both into combined.min.js.

    This is a “hacky” way of doing it, and remember that the change will be overwritten on the next upgrade.

    (You can of course edit combined.min.js directly, but it might be harder to find the correct position of the code to edit.)

    Thank you, I would like to see it in next update 😉

    Plugin Author Bjørn Johansen

    @bjornjohansen

    I just released version 0.6.10 where you can define your own threshold on the options page. Default is still 200.

    Hi Bjorn

    That’s the best news of the day (other are really not that good)

    I will update

    Thanks a lot

    IT WORKS GREAT

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] set the threshold (so image are loaded earlier)’ is closed to new replies.
Skip to toolbar