twobin / twobin/react-lazyload
Images using srcset attribute download both 1x and 2x versions in Safari and Firefox
Open
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 485
- PR merge metrics
- No merged PRs in 30d
Description
When wrapping LazyLoad around an image that utilizes the `srcset` attribute, both the 1x and 2x versions download in Safari and Firefox. Chrome seems to do the right thing and only download one version.
```JS

```
According to the devtools, in Safari and Firefox both /path/to/image.png and /path/to/image@2x.png get download as you scroll past. I would expect on my Retina laptop only the 2x image to get downloaded (Chrome's behavior).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.