Skip to content
LuroWeb
PL

Images on a business website: how not to kill your speed

Images are the most common speed killer in my measurements. WebP/AVIF formats, dimensions, compression and lazy loading - in plain words, with free tools.

20 October 20267 min readŁukasz Rosikoń

When a site loads in six seconds instead of two, eight times out of ten the culprit is images. That is the best news an audit can bring - the fix needs no programmer, no new site and no budget. You only need to understand three things: format, dimensions and compression.

The scale of the problem

A photo straight from a phone weighs 4-8 MB. On a website, in an 800-pixel-wide slot, it should weigh 50-150 KB - that is fifty times less. Ten unprepared photos make 50 MB to download; on a phone outside the city, your customer will browse a competitor's site in that time. Check what yours weighs - the measurement shows page weight next to load time.

Format and dimensions

Format: WebP instead of JPG/PNG - the same photos at ~2/3 of the weight, supported by every browser for years. AVIF is often lighter still. Keep PNG strictly for graphics with text and logos; it is unsuitable for photos. Dimensions: do not put a 4000 px photo into an 800 px slot - resize BEFORE uploading. Rule of thumb: 1600 px wide at most for full-screen-width images, 800 px for half.

Compression without quality loss

A free in-browser tool, no install: Squoosh (drag the photo in, pick WebP, quality ~75-80, compare with the slider, download). TinyPNG handles batches. On WordPress a decent optimisation plugin will process the whole media library - but new photos are still better prepared before upload, because a plugin will not shrink the original that has already bloated your backups.

Lazy loading

Images below the first screen do not need to load immediately - the loading="lazy" attribute tells the browser to fetch them only when the user scrolls near. One caveat: never lazy-load the main image at the top of the page - you will delay exactly what Google measures as LCP and worsen your score instead of improving it. Re-measure after every change - and if the site is still slow after slimming the images, the culprit is one of the other six causes.