ivopetkov / responsively-lazy

Lazy load responsive images and HTML
https://ivopetkov.com/responsively-lazy/
1.1k stars 43 forks source link

It would have been nice to be able to add an offset, to load images earlier. #14

Closed konrad-j closed 10 months ago

konrad-j commented 7 years ago

In Chrome for mobile images are loaded very slow, 1-2 sec when the page have many images. Even if the images are in local cache.

ivopetkov commented 7 years ago

I agree. Do you have any ideas for the configuration?

konrad-j commented 7 years ago

What about adding a config array before loading responsively-lazy, or a function to set config values after? Then we can set a offset in pixels, value 500 will start to loading an image 500 pixels before it enters the viewport.

ivopetkov commented 10 months ago

Threshold support is added in v3.0 🎉