Skip to content
FunnelGuard

Fix guide by FunnelsGuard

No srcset or sizes on images: how to find and fix it

PRF-005Medium impactOther toolBy FunnelGuardPublished Updated
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.

Image download size by approachExample numbers
Image download size by approach (example)Single 2400 px file: 650 KB; srcset 800 px pick: 140 KB; srcset 480 px pick: 70 KB024949865014070Single 2400 px filesrcset 800 px picksrcset 480 px pickKB

Example: a hero image sent to a 400 px phone. Numbers are illustrative; your files will differ.

How a missing srcset slows the funnel
  1. Ad clickVisitor on a phone
  2. Hero imageFull-size file downloaded, no smaller option
  3. Page looks readyLCP arrives late
  4. Form submitSome visitors have already left

The oversized download delays everything after it, including the form.

How to check if your site has it

Check a page in a few minutes
  1. 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.

  2. Inspect the image markup

    Right-click the image, choose Inspect, and look at the <img> tag. If there is no srcset attribute, the browser has no choice.

  3. 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.

  4. 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.

Responsive image with srcset and sizeshtml
<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">
Add srcset and sizes by platform
  1. Use the media library

    WordPress adds srcset and sizes automatically to images inserted through the editor or media library. Re-insert images that were pasted as raw URLs or hard-coded in HTML blocks.

  2. Fix theme templates

    In theme files, replace hard-coded <img> tags with wp_get_attachment_image( $id, 'large' ), which outputs srcset and sizes.

  3. 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.

How to confirm it's fixed

After the change
  • The <img> tag has both srcset and sizes.
  • 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

Keep images responsive
  • 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.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.