On most of the slow sites we look at, images make up more than half of the page weight. It's also the easiest problem to fix.
How big should an image be?
Rough targets that work for most sites:
| Where the image is used | Max width | Target file size |
|---|---|---|
| Full-width banner | 1920 px | under 250 KB |
| Content image in a blog post | 1200 px | under 150 KB |
| Product photo | 1200 px | under 120 KB |
| Thumbnail or logo | 400 px | under 30 KB |
A 4000 px photo from your phone shown at 1200 px is downloaded in full and then shrunk by the browser. On mobile data, that's several seconds of waiting for nothing.
JPEG, PNG, WebP or AVIF?
- WebP is the safe default. It's 25–35% smaller than JPEG at the same visual quality and works in every current browser.
- AVIF is smaller still, but slower to create and not supported by some older software. Fine to use if your plugin supports it.
- PNG only for screenshots, logos with transparency, or images with sharp text. Never for photos.
- SVG for logos and icons if you have the file. It's tiny and sharp at any size.
Resize before uploading
The free tool Squoosh (it runs in your browser, nothing is uploaded) lets you resize and convert in one step. Drag an image in, set the width, choose WebP, and compare quality with the slider. Quality 75–80 is usually indistinguishable from the original.
On Windows, the Photos app can resize too. On a Mac, Preview's Tools → Adjust Size works.
Converting existing WordPress images
If you already have hundreds of images, use a plugin to convert them in bulk:
- LiteSpeed Cache (on LiteSpeed servers): Image Optimization tab, free.
- EWWW Image Optimizer or Converter for Media: create WebP copies and serve them automatically to browsers that support them.
These keep your originals, so you can undo it. Run them once, then they process new uploads automatically.
Lazy loading, done right
WordPress adds loading="lazy" to images automatically, so images further down the page only load when the visitor scrolls near them. Good. But the first large image on the page, usually your banner, should not be lazy-loaded. It's the thing the visitor is waiting for. Most caching plugins have an option to exclude the first image, or you can set "Exclude first X images from lazy load".
Check the result
Run PageSpeed Insights again. The "Improve image delivery" or "Properly size images" warnings should be gone or much shorter, and the total page size under Diagnostics should have dropped.
Stuck on a step?
Customers can open a ticket from the client area and an engineer will do it with you. Not a customer yet? Write to help@hostingdon.com or call +91 98002 55199.