Skip to content

Images keep downloading after re-render #153

Answered by igordanchenko
Artemooon asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure you can abort network requests in this case. Once the DOM gets updated with new images, it's up to the browser to cancel the mid-flight network requests (and it looks like most popular browsers don't do that). In this case, you can minimize network bandwidth waste by providing multiple images of various resolutions in the srcSet prop so that your browser can pick the most appropriate image resolution for your current viewport size.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Artemooon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants