i was wondering how to use image sourceset correctly. Google Page speed always shows me the 1024x source at the mobile result.
I checked my code with the inspector and all 3 images sources are available and the file exits. the code:
What size is the original uploaded image? 1024?
If so then the largest image is being added to the src at page load so the browser will request that, once it’s cached then it won’t need a smaller image as it’s already cached a better version.
I always add the smallest image to the src that way you’re loading a smaller resource to begin with.
I’d also add the sizes attribute it works with srcset.
@pixelijn: mobile → images are to big @ScreenRes the image size is over 1024, adding a smaller size to the src is a super idea!
Desktop 100, Mobile 97 now!