Core Web Vitals and Images
Google's Core Web Vitals are a set of metrics that measure real-world user experience: how fast the page loads, how quickly it becomes interactive, and how stable it is visually. Images and video are the dominant factor in two of the three metrics, because they are usually the largest and slowest elements on a page.
Optimising media is therefore one of the highest-leverage things you can do for both user experience and search ranking. A page that loads its hero image in 200ms feels instant; one that waits 4 seconds for a 5 MB photo feels broken.
Largest Contentful Paint
Largest Contentful Paint (LCP) measures when the largest visible element finishes rendering — usually a hero image or video poster. If that element is a multi-megabyte photo, the page cannot record a good LCP, no matter how fast the rest of it is. The fix is to serve an appropriately sized, compressed, modern-format image.
A good LCP target is under 2.5 seconds for most pages. The single most effective way to hit it is to make the hero image small — right-sized to the display dimensions, in WEBP, at a sensible quality — and ensure the server delivers it quickly with the right cache headers.
How Large Images Hurt SEO
Search engines use page speed as a ranking signal, in part because slow pages have higher bounce rates. Large images slow down the initial render, delay interactivity, and consume mobile data — all of which depress the engagement signals that search engines observe. A site full of unoptimised images will rank worse than an otherwise identical site with optimised ones.
The effect compounds. Slow pages get fewer crawls, lower dwell time, and higher abandonment. Optimising images is one of the cheapest SEO wins available, because it improves the experience for every visitor, not just search bots.
Lazy Loading
Images below the fold should be lazy-loaded — fetched only when the user scrolls near them. This keeps the initial page light and lets the browser focus on rendering the visible content first. Modern browsers support lazy loading with a single attribute, and most CMS platforms enable it by default.
The one exception is the hero image, which should load immediately because it is the LCP element. Lazy-loading the hero image delays the very thing you most want to appear fast.
Serving the Right Format
WEBP is the right default for both photos and graphics on modern sites — it is 25–35% smaller than JPG at equivalent quality and supports transparency and animation. Serve JPG as a fallback only for very old browsers. AVIF is even smaller but has narrower support; consider it for the hero image where the size win matters most.
For decorative graphics and icons, SVG is smaller, sharper at any size, and infinitely scalable. Use it wherever a photo is not required.
Responsive Image Sizing
Serve different image sizes to different devices. A phone does not need the same 2000px-wide hero as a desktop monitor. The `srcset` attribute lets the browser pick the right file based on the viewport, so a mobile user downloads a small image while a desktop user gets the full one.
Generating a few widths of each image — typically 480, 768, 1024, and 1920px — and listing them in a `srcset` is the standard way to do this. It keeps every device on an appropriately sized file without manual per-device work.
Compression Best Practices
Compress every image before it ships. Resize to the largest display width needed (plus a margin for high-DPI), convert to WEBP, set quality to 80, and strip metadata. This combination routinely produces files 70–90% smaller than unoptimised originals, with no visible quality loss.
Re-compressing an already-compressed image compounds artefacts, so always optimise from a high-quality source rather than re-compressing a web export. Keep a lossless master and produce delivery copies from it.
Measuring Performance
Run the page through a speed test and look at the image bytes in the network waterfall. If images are more than about half of total page weight, there is room to optimise. Check LCP specifically — if it is driven by an image, that image is the first thing to fix.
Re-test after each change. Optimisation is iterative: resize, compress, re-measure. The goal is a page that loads fast for real users on real connections, which is exactly what the Core Web Vitals measure.