Website Speed Optimization in 2026: How to Pass Core Web Vitals
Website speed optimization step by step: measure Core Web Vitals, then fix slow LCP, poor INP and layout shifts with images, scripts, fonts and caching.
Short answer: Website speed optimization means measuring pages in PageSpeed Insights and Search Console, then fixing the three Core Web Vitals: show the main content fast (LCP within 2.5 s) with a smaller, prioritised hero image; respond quickly (INP within 200 ms) by loading less JavaScript; and stop layout jumps (CLS under 0.1) by reserving space.
Speed is the part of SEO your visitors feel directly. A page that takes too long on a mid-range phone loses people before your offer even appears. Below is the method I use, with the real numbers and fixes from this website.
The three Core Web Vitals
| Metric | What it measures | Good | Needs improvement | Poor |
|---|---|---|---|---|
| LCP (Largest Contentful Paint) | When the main content (hero image or headline) appears | ≤ 2.5 s | 2.5–4 s | > 4 s |
| INP (Interaction to Next Paint) | How quickly the page responds to taps, clicks and typing | ≤ 200 ms | 200–500 ms | > 500 ms |
| CLS (Cumulative Layout Shift) | How much the layout jumps while loading | ≤ 0.1 | 0.1–0.25 | > 0.25 |
INP replaced First Input Delay as a Core Web Vital in March 2024. Google assesses each metric at the 75th percentile of real visits, so most visitors need a good experience, not just the lucky ones.
How to measure your site speed
- PageSpeed Insights: enter a URL to get lab data (one simulated load) and, if your site has enough traffic, field data from real Chrome users.
- Search Console > Core Web Vitals: groups of URLs that are good, need improvement or are poor, from real-user data.
- Chrome DevTools > Performance and Lighthouse: for finding the exact long tasks and files behind a problem.
Test your most important pages on mobile first, and re-test after each change. When I audited this site in October 2026, PageSpeed Insights gave it 89 on mobile (LCP 2.3 s, CLS 0.008) and 97 on desktop. The weak point was Total Blocking Time at 350 ms, a lab metric closely tied to INP.
How to fix a slow LCP
- Find the LCP element in PageSpeed Insights. It's usually the hero image or the main heading.
- Compress and resize images. Serve WebP or AVIF at the size the screen needs, using
srcsetso phones don't download desktop images. - Don't lazy-load the hero image. Load it early with
fetchpriority="high"; lazy-load only images further down. - Cut render-blocking CSS and JavaScript before the main content: inline the critical CSS, defer the rest.
- Reduce server response time (TTFB): caching, a faster host, a CDN close to your visitors.
- Compress text files: Brotli or gzip. On this site, serving Brotli files prepared at build time cut the home page HTML transfer from 88 KB to 51 KB.
How to fix a poor INP
INP is mostly about JavaScript: when the browser is busy running scripts, it can't respond to the visitor.
- Load less JavaScript. Remove plugins and libraries you don't need.
- Delay third-party scripts (chat widgets, extra trackers) until after the page is interactive, or until the visitor needs them.
- Break up long tasks so the browser can respond between them.
- Don't do heavy work on the first tap. This site used to start its 3D scenes at the visitor's first touch, which made phones slow to respond exactly when people began to scroll. The fix was to show the hero's orbiting icons with plain CSS, keep the 3D for desktop computers, and give phones lightweight pictures instead.
How to fix layout shifts (CLS)
- Give every image and video a width and height (or an aspect ratio), so space is reserved before it loads.
- Reserve space for ads, embeds and banners.
- Use fallback fonts with matching metrics. When a web font arrives late, text reflows and pushes content down. Setting
size-adjustand ascent overrides on the fallback font, as this site does, keeps the switch invisible. - Don't insert content above what's already shown, such as late-loading notices at the top of the page.
Website speed checklist
| Area | Check |
|---|---|
| Images | WebP/AVIF, right size, srcset, lazy-load below the fold, hero not lazy |
| JavaScript | Unused code removed, non-essential scripts delayed, no heavy work on first interaction |
| CSS | Critical CSS early, unused CSS removed |
| Fonts | Two families at most, font-display: swap, matched fallbacks, preload the key file |
| Server | Caching, compression (Brotli/gzip), HTTP/2 or HTTP/3, CDN if visitors are far away |
| Third parties | Each tag justified; load through Google Tag Manager with care |
| Testing | Mobile first, re-test after each change, watch field data in Search Console |
Speeding up WordPress
- Choose good hosting before anything else.
- Use one caching plugin and configure it properly.
- Optimise images on upload (WebP) and lazy-load below the fold.
- Remove plugins you don't use, and avoid page builders that load heavy scripts on every page.
- Delay chat widgets, pop-ups and extra trackers.
Why speed matters for SEO and sales
Page experience is part of Google's ranking systems, but relevance and helpful content matter more, so a fast page won't outrank a better answer on speed alone. The bigger effect is on people: faster pages keep more visitors reading, enquiring and buying. That's why speed is part of both how to improve SEO and conversion rate optimization.
If your site is slow and you'd like it fixed as part of technical SEO, see my SEO services.
Frequently asked questions
What is website speed optimization?
Website speed optimization is making pages load and respond faster: smaller images, less JavaScript, efficient fonts, caching, compression and good hosting. It's measured with Google's Core Web Vitals: LCP, INP and CLS.
What are good Core Web Vitals scores?
Google rates a page good when Largest Contentful Paint is 2.5 seconds or less, Interaction to Next Paint is 200 milliseconds or less, and Cumulative Layout Shift is 0.1 or less, measured at the 75th percentile of real visits.
Does website speed affect SEO?
Yes. Page experience, including Core Web Vitals, is part of Google's ranking systems, though relevance and quality matter more. Speed has an even bigger effect on visitors: slow pages lose people before they read your offer.
Why is my PageSpeed score different every time?
The lab score simulates one load on a throttled phone and varies with network and server conditions. Real-user (field) data from the Chrome UX Report is more stable and is what Google uses; look at both.
How do I speed up a WordPress site?
Use good hosting, a caching plugin, compressed WebP or AVIF images with lazy loading, fewer plugins, a lightweight theme, and delay non-essential scripts such as chat widgets. Check the result in PageSpeed Insights after each change.
What is the fastest way to improve LCP?
Find the LCP element in PageSpeed Insights (usually the hero image or heading), then serve that image smaller and in WebP or AVIF, load it with high priority instead of lazy loading, and reduce the server response time and render-blocking CSS before it.