twobin / twobin/react-lazyload

Cancel pending image downloads when unmounted

Open
#278 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
485
PR merge metrics
No merged PRs in 30d

Description

When an image that is pending to be downloaded, is unmounted, the browser will still continue to download it. This problem is fixed in React-Image (https://github.com/mbrevda/react-image/pull/223).

As mentioned here: https://github.com/mbrevda/react-image

> On unmount React Image will abort any current image downloads potentially saving bandwidth and browser resources should the image no longer be desirable.

It would be interesting to also have this in React-Lazyload as it would otherwise harm performance.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.