Use container width instead of window width for lazy-load #23

rmunch opened this Issue Jun 4, 2014 · 2 comments


None yet

2 participants

rmunch commented Jun 4, 2014

When you use the container option when using a scrolling container, images are tested against the window width to determine whether they are in the viewport instead of against the container's dimensions.

In my case, I have a scrolling container that only fills up 2/3 of the screen, so there are a few images that aren't visible that still get lazy-loaded. Ideally they would only load as you scroll the container.

Thanks for this well-done lazy-loader!

dinbror commented Oct 15, 2016

Fixed in 1.8.0

@dinbror dinbror closed this Oct 15, 2016
dinbror commented Oct 15, 2016

Better late than never ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment