septembre 6, 2026 · Uncategorized

Images: the cheapest speed win on most sites

Images in modern formats loaded on demand, and third-party scripts deferred to the end

On most sites, images are between 60 and 80 percent of the weight of a page. They are also where the easiest gains are: nothing about the design changes, nobody notices anything except that the page arrives sooner.

The same picture in JPEG, WebP and AVIF, and the loading order of third-party scripts

Modern formats, same picture

JPEG dates from 1992. WebP and AVIF encode the same image with far fewer bytes: typically half for WebP, a third for AVIF, with no visible difference at normal quality settings.

Both are supported by every browser people actually use today. The safe way to serve them is to keep the original and offer the modern version to browsers that accept it — so nothing breaks for anyone.

Loading only what is on screen

A long page can hold thirty images. A visitor who reads the first paragraph and leaves has downloaded all thirty. Loading them as they come into view is a one-attribute change, and it is the single biggest saving on article pages.

One exception matters, and it is the same one LCP punishes: the image at the top of the page — the hero, the featured image — must not be deferred. It is usually the largest element of the first screen, and delaying it delays the moment the page looks ready. Defer everything below, never the first one.

Dimensions: the fix nobody thinks about

An image without width and height attributes has no reserved space. The browser lays out the text, then the image arrives and shoves everything down. That is the jump you feel when a page is loading — and it is measured, penalised, and entirely avoidable.

Adding the real dimensions to every image costs nothing and removes most layout shift on a typical site.

Before optimising, resize

The most common mistake is not the format: it is uploading a 4000-pixel photograph straight from a phone into a slot 800 pixels wide. No compression rescues an image five times larger than it needs to be.

Resize to roughly twice the display size — enough for high-density screens, no more — then convert. In that order, the gains multiply.

What to do this afternoon

Celeris converts images to WebP and AVIF on your own server, keeps the originals, adds missing dimensions, and leaves the first image alone.