Website speed: what Core Web Vitals are and how to improve them
A fast site is less frustration for the visitor, and also something Google measures. Core Web Vitals are three metrics that describe the browsing experience, and they have clear target values. Here is what they are, how to check them, and what to fix first.
The three metrics
- LCP (loading the main content): how long until the largest part of the page appears. A good value is up to 2.5 seconds.
- INP (responsiveness): how long it takes between a tap and the page’s response. A good value is up to 200 milliseconds.
- CLS (stability): how much the page “jumps” while it loads, for example a button that moves just as you tap it. A good value is up to 0.1.
These values are published by Google on web.dev, and they are measured on real visitors, usually on a phone.
How to check
The simplest tool is PageSpeed Insights, which takes an address and shows both field data and lab data. If the site is verified in Search Console, there is a Core Web Vitals report for the whole site, but it appears only when there are enough visitors. For a new site this can take time.
What improves things the most
- Images: a modern format such as WebP, a size that matches the display, and a defined width and height so the page does not jump.
- Fonts: load them from the site itself, and make the text appear immediately with a fallback font.
- Code: less JavaScript, and no large libraries for something small.
- Third parties: every external script (tracking, chat, pixels) adds time. Keep only what you really need.
- Caching: files that do not change should be kept in the browser.
An example from this site
On this site the fonts load from the site itself, the images are in WebP format, and the pages are written as simple files, with no content management system adding weight. It is not magic, it is a choice to start from a light base.
Field data and lab data
There are two kinds of data, and they do not always agree. Lab data is measured in a single test, on a simulated device and network, and is useful for finding problems and checking a fix. Field data comes from real visitors, and what Google looks at is usually the value at which 75 percent of visits are at least as good. In a lab test the site may look excellent while the field data is worse, because some visitors have weaker devices and networks.
What a fixing process looks like
- Measure the page and write down the values.
- Identify the largest element that loads, usually an image or a large heading, and what delays it.
- Fix one thing at a time: for example shrink the image or remove a blocking script.
- Measure again, and check that nothing else broke.
Testing on a slow network
You can simulate a slow network and a weak processor in Chrome’s developer tools, in the Performance or Network tab. It is worth looking at the site the way someone browsing from a phone without Wi-Fi sees it, not the way it looks on a fast office computer.
Images: a few details that matter
- Keep several sizes of the same image and let the browser choose (srcset), so a phone does not download a desktop-sized image.
- Lazy-load images that are lower down the page, but not the main image at the top.
- Set a width and height, so the page does not shift when the image loads.
- Choose a modern format, and compress without ruining the quality.
What not to do
- Add many plugins to “fix” speed. Every plugin is more code that has to load.
- Chase 100 on every metric at any cost.
- Measure once and forget. Any content change can slow the page down.
Speed and conversions
Speed is not only a matter of a score. When a page loads extremely slowly, people leave before they see the offer, and when a button jumps at the moment of the tap, they tap something else. The fixes that improve the metrics are usually the same fixes that improve the real experience, so they have business value and not only technical value.
How long it takes to see an improvement
Field data in Search Console is updated over a window of several weeks, so an improvement you make today will not appear there immediately. Lab tests show a result right away, so use them to check a fix, and use the field data later to check that the improvement reached real visitors too.
The bottom line
Do not chase a perfect score. Check the site on a phone, fix what slows it down the most, and check again. As with many other things, speed is the result of small decisions made while building.