How to Get Auditing Image Weight Right
Checking how much of a page's weight comes from images, and whether that weight is necessary.
On this page
The key figures
- Display size
- images are often larger than their rendered size
- Formats
- modern formats compress better than older ones
- Responsive images
- let browsers pick appropriate sizes
- Lazy loading
- defers offscreen images
Why this is worth getting right
Images are usually the largest part of page weight, and most sites serve them larger than they display.
Do this, not that
Do
- Compare intrinsic and displayed image sizes
- Serve modern formats with fallbacks
- Use responsive image attributes
- Lazy load offscreen images
- Set weight budgets per template
Don’t
- Full-resolution images scaled by CSS
- One image size for all breakpoints
- Background images that cannot be optimized
- Budgets set without measurement
When to bring in help
Our advice Bring in help when pages are heavy with imagery.
Where this comes from
- web.dev — Browser-level image lazy loading for the web
- MDN Web Docs — Responsive images
The figures and practices above come from the sources listed.
Working on something like this?
We take on Performance & Accessibility work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.