> Let's serve devices the image resolution that they can handle and not an XL image just because we can.
I would be all for this, but I frequently find myself pinch-zooming into images on my phone to more closely examine the details in them. If the site assumed that I would only see what's visible in the image at the initially-rendered aspect ratio, then zooming would reveal nothing (e.g. text that's small and blurry, would just become large and blurry, rather than crisp.)
Ideally, a browser would be able to notice when you've zoomed into an image element past its Nyquist frequency, and async-load a higher-quality version of the image, swapping it out once the loading's complete. Do any browsers do this yet?
I would be all for this, but I frequently find myself pinch-zooming into images on my phone to more closely examine the details in them. If the site assumed that I would only see what's visible in the image at the initially-rendered aspect ratio, then zooming would reveal nothing (e.g. text that's small and blurry, would just become large and blurry, rather than crisp.)
Ideally, a browser would be able to notice when you've zoomed into an image element past its Nyquist frequency, and async-load a higher-quality version of the image, swapping it out once the loading's complete. Do any browsers do this yet?