react-lazy-load-image-component icon indicating copy to clipboard operation
react-lazy-load-image-component copied to clipboard

Unload when out of the viewport

Open ndtreviv opened this issue 6 years ago • 2 comments

Is your feature request related to a problem? Please describe. I have a page with potentially 1,000 images on it. I'm worried about memory load on the browser as the user scrolls down the page. Lazily loading in will help to start with, but only if the images get unloaded when they scroll out of the viewport again.

Describe the solution you'd like I'd like to be able to configure a LazyLoadImage to be unloaded when out of the viewport.

Describe alternatives you've considered Pagination.

Additional context N/A

ndtreviv avatar Jun 20 '19 19:06 ndtreviv

Bump. I'm currently using react-intersection-observer to do unmounting.

FrederickEngelhardt avatar Nov 13 '19 08:11 FrederickEngelhardt