Developer and Text Tools

How to Audit Image Loading: Lazy, Sizes, srcset and Formats

Check every img tag for width and height, lazy loading, fetchpriority, srcset and modern formats, estimate savings from a HAR, and copy fixed tags.

Saizul Amin
Saizul Amin3 Nov 2026 · 3 min read
How to Audit Image Loading: Lazy, Sizes, srcset and Formats

How to Audit Image Loading: Lazy, Sizes, srcset and Formats

Images are usually the heaviest part of a web page, and very often the largest element in the first screen. That makes them central to two Core Web Vitals: Largest Contentful Paint, which suffers when the hero image loads late or is too big, and Cumulative Layout Shift, which suffers when images arrive without reserved space. Most of the fixes are attributes on the img tag, so a careful audit of the markup pays off quickly.

What to check on every image

Width and height. Give every image its intrinsic width and height attributes, or an aspect-ratio in CSS. Browsers use them to reserve the right space before the file arrives, even when CSS makes the image responsive.

Lazy loading. loading=lazy delays images until they are near the viewport. It is excellent below the fold and harmful above it, because the browser waits for layout before fetching a lazy hero image.

Priority. The one image that is likely to be the LCP element should have fetchpriority=high so the browser fetches it before other images. Putting it on many images cancels the benefit.

Responsive sizes. A large image without srcset sends the desktop file to phones. When srcset uses width descriptors, add a sizes attribute, or the browser assumes the image fills the whole screen width.

Formats. JPEG, PNG and GIF files can usually be served as WebP or AVIF at much smaller sizes, through a picture element or an image CDN.

Alt text. Every image needs an alt attribute, with an empty value for purely decorative images.

Running the audit

Paste the page source into the Image Delivery Optimizer and enter the page URL so image paths resolve. Set how many images are visible on first load and the screen density you design for. The table lists each image with its attributes and findings.

Two extras make the numbers real. Measure image files loads each image straight from your site into the browser to read its pixel size, which reveals oversized files, such as a 4,000 pixel photo shown 1,200 pixels wide. Opening a HAR file recorded in DevTools adds the real transfer size of each image, so the tool can estimate how much resizing and format conversion would save.

Fixing the tags

The Fixed HTML tab rewrites the img tags with the fixes you choose: width and height from the measured files, lazy loading only below the fold, fetchpriority on the first image, and decoding=async further down. Only the image start tags change. Copy the result into your template or hand it to a developer.

Format conversion and resizing happen elsewhere. An image CDN that serves AVIF or WebP automatically at the requested width is the simplest option; a build step that generates several widths for srcset is the next best.

Common surprises

Sliders and carousels often lazy load their first slide, which is usually the LCP element. Theme logos are frequently uploaded at several times their display size. Old GIF banners can be several megabytes and are better as short videos or static images. And CMS editors often skip alt text unless the field is required.

Keep checking

New content brings new images, so make the audit part of publishing for important pages. A template that writes correct attributes automatically, together with an image CDN, removes most of the problems for good, and the occasional audit catches the rest.

A simple order of work

Start with the hero: remove lazy loading, add fetchpriority and serve it at the right size. Then add width and height to every image to stop shifts. Then lazy load everything below the fold, and finally move to modern formats. Each step can ship on its own.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages