On many websites, images are the largest files on a page. Good optimisation can therefore directly affect loading time and Core Web Vitals, without a noticeable loss of visual quality.
Do not upload larger than needed
A photo thousands of pixels wide is rarely needed in a content column. Define clear image sizes and let WordPress serve responsive variants.
Use modern formats
WebP and, where suitable, AVIF can be considerably smaller than older JPEG or PNG files. Choose the format based on the type of image and browser support, and keep a good fallback where needed.
Lazy-load what is out of view
Images that only appear far below the fold do not need to load straight away. The main image at the top of the page should not be delayed, because that can worsen the Largest Contentful Paint.
Prevent layout shifts
Set a width and height or a fixed aspect ratio. The browser can then reserve space before the file arrives, so content does not jump while loading.
Optimise as part of the whole stack
Images are one component. Server response time, caching, scripts, fonts and WordPress code together determine the user experience. So optimise based on measurements rather than a single score.
Which dimensions are enough?
A photo shown at most 1200 pixels wide on the website does not need to be 4000 pixels wide. Set the right sizes in WordPress and upload images no larger than needed. WordPress creates smaller versions for mobile itself, provided the theme uses them with srcset.
WebP and AVIF
Modern formats such as WebP and AVIF are often much smaller than JPG or PNG at the same quality. An optimisation plugin or the server can create them automatically and serve them to browsers that support them. Keep the original as a fallback for older browsers.
Quick results in three steps
- Compress existing images in bulk with an optimisation plugin
- Enable lazy loading for images out of view, but not for the large image at the top of the page
- Give every image a width and height, so the page does not jump while loading
Frequently asked questions
Do I lose quality through compression?
With good settings the difference is hardly visible to the naked eye, while the file often becomes half the size.
Do I need to upload old images again?
No. An optimisation plugin can shrink and convert existing images in the media library in bulk.
Why is the large image at the top so important?
It often determines the Largest Contentful Paint, one of the Core Web Vitals. So do not lazy-load it, and keep it as small as possible.
Rather not manage this yourself?
We combine managed hosting, WordPress maintenance and support in one service.