react-lazy-load
react-lazy-load copied to clipboard
Doesn't work well inside an iframe or an element with overflow
Doesn't work well:
- inside an iframe that isn't visible in top window viewport.
- inside an element with overflow, e.g. inside
div { width: 0; height: 0; overflow: hidden; }
.
In the cases above LazyLoad
shouldn't trigger loading, but it does.
Using IntersectionObserver
would be a solution.
One more advice about IntersectionObserver
https://github.com/loktar00/react-lazy-load/issues/123