Does anybody knows how to set the threshold so the image can be loaded earlier. The trick is explain here
but where to change things in the plugin ????
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.
If you have a link I follow it, if I have to wait for the nexte version, I will wait
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 ;)
I just released version 0.6.10 where you can define your own threshold on the options page. Default is still 200.
That's the best news of the day (other are really not that good)
I will update
Thanks a lot
IT WORKS GREAT
This topic has been closed to new replies.