← All resources
Images

Serve responsive images with srcset and sizes

Stop shipping desktop-sized images to phones — use Shopify’s image_tag for correct srcset.


When images lack a multi-source srcset or a sizes attribute, every device downloads the same fixed-size file. Mobile users pay for desktop pixels they never see, hurting LCP and bandwidth.

How to fix it

Use Shopify's image_tag filter, which generates a correct responsive srcset automatically:

{{ product.featured_image | image_url: width: 1500 | image_tag:
     widths: '375, 550, 750, 1100, 1500',
     sizes: '(min-width: 750px) 50vw, 100vw',
     loading: 'lazy' }}
More on Images
Run a check → Browse resources