I have some images with a fixed height I want to lazyload. These images are wrapped in a component, <LazyLoad />
which provide an intersection observer. In the main page, I use a few of these <LazyLoad />
components. However, although I have 6 of these components and only one of them (the very first one) seems to be intersecting the view port, it's actually the first 4 images that are already loaded, so only the last two are lazily loaded. How do I get the observer to work as I expect it to?
The code is in this sandbox.