Images and page weight

About images and page weight

Images are the single most common reason a launch page is slow, and slow pages lose conversions before they lose rankings. A hero image exported straight from a design tool at full resolution can be two megabytes on its own, which is more than the rest of the page combined and most of it invisible at the size it renders.

This hub covers the decisions that matter in order of impact: choosing the format, sizing for the layout rather than for the source file, serving responsive variants, and reserving space so the page does not shift while images arrive. Layout shift is worth calling out separately because it is a ranking signal and an obvious usability problem, and it is fixed by two attributes.

Compression gets a full treatment because the intuition is usually wrong. The quality setting where a photograph starts to look degraded is far lower than most people assume, and the file size difference between a defensible setting and a cautious one is often three to one.

Common questions

WebP or AVIF?
AVIF compresses better and is now supported by every current browser. WebP encodes faster and is a safe universal fallback. Serving AVIF with a WebP fallback in a picture element covers both.
How much can images actually be compressed?
For photographic content, quality settings around 75 to 80 are usually indistinguishable from the original at normal viewing size and cut file size by half or more.