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

    Thread Starter lebuttazzoni

    (@lebuttazzoni)

    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.

    Thread Starter lebuttazzoni

    (@lebuttazzoni)

    Hi Bjorn

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

    I will update

    Thanks a lot

    Thread Starter lebuttazzoni

    (@lebuttazzoni)

    IT WORKS GREAT

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