Images · Image loading

Incorrectly sized image

An image on this page is 2400 pixels wide but is shown at only 400 pixels, so visitors download far more than they need.

How this page is built

The image below is 2400 by 1350 pixels, but its width and height attributes display it at 400 by 225. The file is small because it is a flat colour, so this page tests its dimensions rather than its file size.

A grey test card showing its real size, 2400 by 1350 pixels

Why it matters

When an image is much larger than the space it fills, the browser downloads pixels that are never shown. For photos, that can mean several times more data than necessary.

The extra work slows down the page, especially on mobile devices, and is one of the most common performance problems that Lighthouse reports.

How to check it

Lighthouse reports properly size images with the possible savings. In browser developer tools, hover over an image to compare its intrinsic size with its rendered size.

How to fix it

Resize images to the largest size they are displayed at, allowing for high-density screens. Use srcset and sizes so the browser can choose a smaller file on smaller screens.

Back to all tests