What AuditX checks
The scan opens the page you scanned in a browser at desktop (1440 by 900) and phone (390 by 844) size and lists up to the first 120 img elements. It also receives the largest contentful paint image that Lighthouse named in the same scan, when there is one. An image is lazy when its loading attribute is lazy and it did not fail to load. The check fails when the Lighthouse image has the same address as a lazy image, either the file the browser picked from srcset or the src attribute. It warns when no such match exists but a lazy image that is visible sits in the first screen and covers at least as much area as 100 by 100 pixels. Smaller images, such as icons, are left out, and the largest offender is named first. It passes when no image in the first screen is lazy. If the browser could not open the page, or the page has no img elements, the result is an info note, which does not lower the score, and it is not marked as not measured. It does not see background images set in CSS, and it does not see lazy loading done by script with data-src. Images below the first screen are never flagged, because lazy loading there is correct.
Why it matters
The web.dev guide to browser-level lazy loading says not to lazy-load images that are likely to be in the viewport when the page loads, especially the largest contentful paint image.
The web.dev guide to optimizing largest contentful paint says to never lazy-load that image, because it always adds an unnecessary delay to the resource load.
How to fix it
- Find the image the report names. It is usually the main banner or hero image.
- Remove loading="lazy" from that image. The default is eager loading, so you can leave the attribute out.
- Keep loading="lazy" on images further down the page.
- If your theme or a plugin adds the attribute to every image, look for a setting that skips the first image, or exclude it by name.
<img src="hero.jpg" width="1200" height="600" alt="Our workshop">
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