What AuditX checks
The scan opens the page you scanned in a browser at phone size (390 by 844 pixels) and reads up to the first 120 img elements. Only the phone view is used. An image counts when it has loaded, has no srcset attribute, is not inside a picture element that offers a source with a srcset, is shown with a width above zero, has a file wider than 1400 pixels, and the file is more than 3 times wider than the width it is shown at. The check passes when no image counts. It warns when 1 to 3 images count. It fails when 4 or more count. The message names the worst one. If the page could not be opened at phone size, even when it opened at desktop size, or the phone view has no img elements, the result is an info note, which does not lower the score. The scan only checks whether a smaller version is offered, not whether the offered versions are well chosen, and it does not read file sizes in kilobytes. It does not see CSS background images. A separate check looks at images that are much larger than their space on desktop.
Why it matters
MDN says there is no need to embed very large images on a page viewed on a mobile screen, because it can waste bandwidth. Mobile users do not want to download a large image meant for desktop when a small one would do.
web.dev recommends using srcset and sizes so that different display sizes and densities get different image files.
How to fix it
- Add a srcset attribute that lists two or three sizes of each large image, and a sizes attribute that tells the browser how wide the image is shown.
- Many website builders and plugins do this for you. Look for a responsive images setting, or for an image component that creates several sizes.
- Start with the largest images the report names, usually banners and hero photos.
- Run the scan again. The count should go down.
<img src="banner-1600.jpg"
srcset="banner-480.jpg 480w, banner-960.jpg 960w, banner-1600.jpg 1600w"
sizes="100vw" width="1600" height="600" alt="Our shop front">
Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.
Scan my site