On this page
What this issue is
A plain <img src="hero.jpg"> tells every browser to download one file. It does not matter if the screen is a 400 px phone or a 2560 px monitor.
Two attributes fix this. `srcset` lists the same image at several widths. `sizes` tells the browser how wide the image will be shown on the page at different screen widths. The browser combines both with the device's screen width and pixel density, then downloads the smallest file that still looks sharp.
Without them, you either serve a big file to everyone (slow on mobile) or a small file to everyone (blurry on large screens).
Why it costs you leads or sales
Bigger image files take longer to download, especially on mobile data. If the image is your hero or product photo, it is often the Largest Contentful Paint (LCP) element, the moment the main content appears. A late LCP means visitors wait on a blank or half-built page, and some leave before your form or buy button shows.
The impact is usually medium: it rarely breaks a funnel, but it quietly slows every visit, and paid traffic arrives mostly on phones. Extra bytes also compete with scripts and tracking tags for bandwidth.
Example: a hero image sent to a 400 px phone. Numbers are illustrative; your files will differ.
- Ad clickVisitor on a phone
- Hero imageFull-size file downloaded, no smaller option
- Page looks readyLCP arrives late
- Form submitSome visitors have already left
The oversized download delays everything after it, including the form.
How to check if your site has it
Run Lighthouse
In Chrome, open DevTools, go to the Lighthouse tab, run a Mobile report and look for 'Properly size images'. It lists images that are larger than they need to be.
Inspect the image markup
Right-click the image, choose Inspect, and look at the
<img>tag. If there is nosrcsetattribute, the browser has no choice.Compare file size to display size
In DevTools, hover the
<img>element to see 'Rendered size' and 'Intrinsic size'. If the intrinsic size is far larger than the rendered size, you are over-serving.Test with a phone-sized window
Open the Network tab, filter by Img, switch device mode to a phone and reload. Check which file downloads and how many KB it is.
How to fix it
Prepare the same image at several widths (for example 480, 800, 1200 and 1600 px), then reference them in srcset. Keep a normal src as a fallback and set width and height so the layout does not jump.
<img
src="/img/hero-1200.jpg"
srcset="/img/hero-480.jpg 480w,
/img/hero-800.jpg 800w,
/img/hero-1200.jpg 1200w,
/img/hero-1600.jpg 1600w"
sizes="(min-width: 1200px) 1200px, 100vw"
width="1200" height="675"
alt="Describe the image">Use the media library
WordPress adds
srcsetandsizesautomatically to images inserted through the editor or media library. Re-insert images that were pasted as raw URLs or hard-coded in HTML blocks.Fix theme templates
In theme files, replace hard-coded
<img>tags withwp_get_attachment_image( $id, 'large' ), which outputssrcsetandsizes.Regenerate sizes if needed
Old uploads may lack smaller sizes. Use a thumbnail regeneration plugin, then check the markup again. Page builders can override output, so check their image settings too.
Use image_tag in Liquid
In your theme, replace manual
<img>tags with{{ image | image_url: width: 1200 | image_tag: widths: '480, 800, 1200, 1600', sizes: '(min-width: 1200px) 1200px, 100vw' }}.Check the theme section
Most Online Store 2.0 themes already do this. Edit the section file that renders your hero or product image if it does not.
Use the Image element
Webflow generates responsive versions of uploaded images and adds
srcsetfor the Image element. Avoid using the image as a CSS background if you need srcset.Set the sizes value
In the Image settings, adjust the 'Image width' behaviour so the browser knows how wide the image displays at each breakpoint.
Use standard image elements
Wix serves resized versions of images automatically. Avoid oversized uploads and check the result in DevTools, since you cannot edit the markup directly.
Use image blocks
Squarespace creates several image widths and adds
srcsetfor image blocks. Images placed through Code Blocks or custom HTML do not get this, so use an image block instead.
Generate the widths
Export the image at several widths with your build tool or an image CDN.
Add srcset and sizes
Use the snippet above. Set
sizesto match your real layout, such as(min-width: 768px) 50vw, 100vwfor a half-width column.Use picture for art direction
If a phone needs a different crop, wrap sources in a
<picture>element withmediaconditions.
How to confirm it's fixed
- The
<img>tag has bothsrcsetandsizes. - On a phone-sized window, DevTools Network shows a smaller file than on desktop.
- Rendered and intrinsic size are close (within roughly 2x for high-density screens).
- Lighthouse no longer lists the image under 'Properly size images'.
- The image looks sharp on desktop and on a high-density phone.
- The hero image is not lazy-loaded.
How to prevent it happening again
- Insert images through the CMS image feature, not as pasted HTML.
- Add a Lighthouse or PageSpeed check to your launch checklist for new landing pages.
- Set a maximum upload width so editors do not add 4000 px files.
- Review theme or page builder updates that change image output.
- Use an image CDN or build step that creates multiple widths automatically.
How FunnelGuard handles this
This is outside what FunnelGuard checks. Missing srcset and sizes is a page-performance and markup issue, and it needs a different kind of tool: a page speed or performance audit tool such as Lighthouse, PageSpeed Insights or WebPageTest.
FunnelGuard is a synthetic monitoring service that runs your real customer journeys (forms, checkouts, booking and chat buttons) on a schedule and checks each step, the tracking hits and whether test leads arrive. Use it alongside a performance tool, so you know both that pages are fast and that the funnel still works.
Questions people ask
What does srcset do on an image?
srcset gives the browser a list of the same image at different widths. The browser picks the one that best fits the screen size and pixel density, so phones download smaller files than desktops.
Do I need both srcset and sizes?
Yes, in most cases. With width descriptors (such as 800w), sizes tells the browser how wide the image will display. Without it, the browser assumes full viewport width and may choose a file that is too large.
Why is Lighthouse saying 'Properly size images'?
It means the image file is larger than the size it is displayed at. Adding srcset and sizes, or uploading a smaller version, lets the browser download fewer bytes.
Does WordPress add srcset automatically?
Yes, for images inserted through the media library or editor, WordPress adds srcset and sizes. It may be missing for hard-coded HTML, some page builder widgets or images added as raw URLs.
How do I add srcset in Shopify?
Use the Liquid image_tag filter with widths and sizes parameters, for example {{ image | image_url: width: 1200 | image_tag: widths: '480, 800, 1200', sizes: '100vw' }}. Many current themes already do this.
Will srcset improve my LCP?
It can, when the LCP element is an image that is currently larger than needed on phones. Smaller downloads arrive faster, though LCP also depends on preloading, server speed and render-blocking resources.
Does srcset work for CSS background images?
No. srcset only works on <img> and <source> elements. For CSS backgrounds you can use image-set() or media queries, or switch the hero to an <img> tag.
Can FunnelGuard tell me if my images lack srcset?
No. That check needs a page speed or performance audit tool such as Lighthouse or PageSpeed Insights. FunnelGuard monitors funnel journeys, tracking hits and lead delivery instead.
Related issues
- PRF-003Hero image is a 4 MB PNGFix guide
- PRF-004Hero image served at 3000 px wide to a 400 px phone screenFix guide
- PRF-006Images not served in WebP/AVIFFix guide
- PRF-007LCP image lazy-loaded (loading=lazy on hero)Fix guide
- PRF-024Images missing width/height causing late layout and slow LCPFix guide
- PRF-001LCP over 2.5 s on a funnel stepFix guide