Here's my HTML:
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>serset test</title>
</head>
<body>
<img srcset="/img/about/icon-320.png 320w,
/img/about/icon-480.jpg 480w,
/img/buy/icon-640.png 640w,
/img/buy/icon-780.jpg 780w,
/img/buy/icon-1280.png 1280w"
src="/img/buy/fallback.png"
alt="responsive image">
</body>
</html>
I tried on few devices and most of them load the icon-1280.png, only few loaded the icon-780.jpg, none of the devices that I tried loaded the smaller images, regardless of the screen resolution.
Even on chrome developer tools when I change to "low-end mobile" it still loads only the large images, even on small resolutions. I also tried with fiddler "Simulate modem speed" and it also didn't change anything.
I keep clearing my cache before each try so it's not a cache issue.
I want my site to load as fast as possible on mobile by serving only the required images by its screen size. What should I do and why is the img element with srcset still loads the large images regardless of the actual device resolution? (I know I could resort to <picture>
but still want to give a shot with srcset as it's suppose to be to right tool for this job)