Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PSA: https://groups.google.com/a/chromium.org/d/msg/blink-dev/sIGNgOAC0oc/TFST-dJxAwAJ When srcset selects images, it takes the screen density into account, but beyond a certain density, that can result in excessive downloaded images. Currently, when adding `w` descriptors to srcset, developers run a risk that large `w` descriptor images will be used on small screens with very-high density values. For example, when defining `<img srcset="300.jpg 300w, 600.jpg 600w, 1200.jpg 1200w, 2400.jpg 2400w">`, developers that define the 2400px wide image typically intend for it to be used for very large screens (e.g. a 32" 2x screen), but it often ends up also being used on small screens (e.g. a phone with 4x DPR and viewport width of 600+px) . Research[1] shows that density above 2-2.2x is not visible by most people, and therefore we could avoid wasting those bytes and avoid the related slowdown. See whatwg/html#4421 for full discussion Change-Id: I52afd505b023767883088a939083f9f835e7fa14 BUG: 1125973 [1] https://observablehq.com/@eeeps/visual-acuity-and-device-pixel-ratio Change-Id: I52afd505b023767883088a939083f9f835e7fa14 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2395619 Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: Mason Freed <masonfreed@chromium.org> Commit-Queue: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/master@{#812698}
- Loading branch information