Website Speed Optimization: Core Web Vitals, Tools, and Common Fixes
An older article from 30 November 2022, kept online for reference. For current work on this topic, see Software development.
Updated 2026-10-18: this article now uses Interaction to Next Paint (INP), which replaced First Input Delay as a Core Web Vital in March 2024 (web.dev announcement). Earlier versions promised optimization results from client sites and cited speed statistics we couldn’t trace to their original studies; both are removed.
Why Website Speed Is a Business Metric
Speed affects whether people stay long enough to buy, and it can be tested like any other change. One published example: Vodafone ran an A/B test on a landing page with paid traffic split between an optimized and a baseline version that were otherwise identical; the version with a 31% better LCP produced 8% more sales (web.dev: Vodafone case study, 2021, accessed 2026-10-18). That’s one company’s result, not a rule; measure your own.
On rankings, Google describes Core Web Vitals as part of page experience, which “aligns with what our core ranking systems seek to reward,” and recommends good scores without promising a ranking effect (Google: Core Web Vitals and Search, accessed 2026-10-18).
Core Web Vitals Explained
Google measures three metrics, assessed at the 75th percentile of real page loads, separately for mobile and desktop (web.dev: Web Vitals, accessed 2026-10-18):
| Metric | What It Measures | Good | Needs Improvement | Poor |
|---|---|---|---|---|
| LCP (Largest Contentful Paint) | Time to render the main content | ≤ 2.5 s | 2.5–4.0 s | > 4.0 s |
| INP (Interaction to Next Paint) | Responsiveness to clicks, taps, keys | ≤ 200 ms | 200–500 ms | > 500 ms |
| CLS (Cumulative Layout Shift) | Visual stability (no jumping) | ≤ 0.1 | 0.1–0.25 | > 0.25 |
Each metric links to its web.dev definition and thresholds (accessed 2026-10-18).
Field data decides, lab data diagnoses. Search Console’s Core Web Vitals report uses real-user data from Chrome (Search Console Help: Core Web Vitals report, accessed 2026-10-18). Lab tools like Lighthouse are for finding the cause, not for proving the result.
Tools for Measuring Performance
Lab testing tools
| Tool | Best For | Limitations |
|---|---|---|
| Lighthouse | Quick audits, specific recommendations | Simulated conditions, not real users |
| WebPageTest | Detailed waterfall analysis, multiple locations | Requires interpretation, steep learning curve |
| GTmetrix | Visual comparisons, historical tracking | Free tier is limited |
| Chrome DevTools | Real-time debugging, network throttling | Manual, not automated |
Real-user monitoring (RUM)
| Tool | Best For |
|---|---|
| Google Search Console | Free Core Web Vitals data (what Google sees) |
| Vercel Speed Insights | Real-user data for Vercel-hosted sites |
| Cloudflare Web Analytics | Privacy-focused RUM |
| SpeedCurve | RUM with competitor benchmarking |
Check current pricing on each vendor’s site; it changes.
Common Performance Problems and Fixes
Slow LCP (Largest Contentful Paint)
Causes:
- Unoptimized hero images
- Slow server response time (TTFB)
- Render-blocking CSS or JavaScript
Fixes:
- Serve modern formats (WebP, AVIF) through a
<picture>element or CDN conversion - Preload the LCP image:
<link rel="preload" as="image" href="hero.webp"> - Load the hero image eagerly (
loading="eager") and below-the-fold images lazily (loading="lazy")
High CLS (Layout Shift)
Causes:
- Images without dimensions
- Ads and embeds that load late
- Web fonts swapping in with different metrics
Fixes:
- Always set
widthandheighton images and videos - Reserve space for ads with CSS
aspect-ratioormin-height - Use
font-display: swapwith preloaded fonts and matched fallback metrics
Slow INP (Interaction to Next Paint)
Causes:
- Long JavaScript tasks blocking the main thread
- Heavy hydration of components that don’t need to be interactive
- Third-party scripts (analytics, chat widgets)
Fixes:
- Split long tasks and defer non-critical scripts (
async,defer) - Hydrate only the components that need interactivity
- Audit third-party scripts; remove or delay the ones that don’t earn their cost
Performance by Framework
Defaults matter, but every framework can be fast or slow depending on what you ship.
| Framework | Default behavior | Key optimization |
|---|---|---|
| Astro | Renders components to HTML without client JavaScript unless you add an island (Astro: islands) | Keep islands few and small |
| Next.js | Prerendering or per-request rendering, depending on the route and its data | Use next/image; cache what can be cached |
| WordPress | Depends heavily on theme and plugins | Page caching, a CDN, and plugin audits |
| Shopify | Depends on the theme and installed apps | Audit app scripts; optimize theme images |
Next Steps
- Check your field data in Search Console first, then use lab tools to find the cause.
- Fix one bottleneck at a time and confirm the change in field data over a full window.
- For the indexing and measurement side, see Technical SEO for Developers.
If your site runs on WordPress and you want this work done, see WordPress development.
On this page