When you use srcset as follows:
<img src="example-src.jpg" srcset="example-1x.jpg 1x, example-2x.jpg 2x" />
Or using an image tag, for example:
<picture> <source media="(min-width: 64em)" src="high-res.jpg"> <source media="(min-width: 37.5em)" src="med-res.jpg"> <source src="low-res.jpg"> <img src="fallback.jpg" /> </picture>
Can I find out which URL the browser decided to use? Checking the src attribute of the <img> tag alone does not tell you which image was uploaded.
(Sorry if this is a duplicate. I cannot find a solution anywhere.)
source share