Lesson 1 of 14 · 22m
Core Web Vitals: What the Numbers Actually Mean
LCP, INP, and CLS as user experiences rather than scores — the thresholds, the p75 rule, and the LCP sub-parts that tell you where to dig.
A team I watched spent a full quarter dragging their Lighthouse score from 62 to 98. Conversion didn't move. Their real users — mid-range Android over hotel Wi-Fi — got the same slow page as before, because the score was measured on a MacBook on office fibre. That's the first thing to internalize: a performance number only means something if you know who experienced it and what it describes.
Core Web Vitals are Google's names for three experiences that correlate with users leaving: did the main content show up (LCP), did the page respond when I tapped (INP), did things jump around under my thumb (CLS). They're field metrics — they describe what happened to real people, not what a lab run predicted.
The three metrics and their thresholds
| Metric | Question it answers | Good | Poor |
|---|---|---|---|
| LCP — Largest Contentful Paint | When did the biggest above-the-fold image or text block render? | ≤ 2.5 s | > 4.0 s |
| INP — Interaction to Next Paint | How long from tap/click/keypress to the next painted frame? | ≤ 200 ms | > 500 ms |
| CLS — Cumulative Layout Shift | How much did visible content move without being asked? | ≤ 0.1 | > 0.25 |
INP replaced FID as a Core Web Vital in March 2024. FID only measured the delay before the first handler ran; INP measures the full round trip — input to paint — for every interaction and reports roughly the worst one. Sites that passed FID trivially often fail INP, and that's deliberate: FID rewarded pages that were technically responsive once, INP punishes pages that stay busy.
The p75 rule
A page passes when the 75th percentile of real page loads meets the threshold, evaluated separately for mobile and desktop. Not the mean, not the median. So one in four users can still have a bad experience while you pass — and when you fail, the problem lives in your slow tail, not your typical session. Optimizing the median is the most popular way to "do performance work" without moving the metric.
LCP has four sub-parts — learn them by heart
navigation start
|-- TTFB ------------------| redirects, network, server until first HTML byte
|-- resource load delay ---| HTML parsed until LCP image request starts
|-- resource load duration ---| image bytes downloading
|-- element render delay ---| bytes in hand until paint
LCPEvery LCP fix maps to exactly one sub-part. A slow backend or a redirect chain is TTFB. An image the browser discovers late — CSS background-image, JS-injected, loading="lazy" — is load delay. A 900 KB JPEG is load duration. Render-blocking CSS, a synchronous third-party script, a client-rendered hero — render delay. If you can't say which sub-part you're fixing, you're guessing. Healthy shape, roughly: TTFB ~40%, load duration ~40%, and load delay + render delay under ~10% each.
CLS is about unexpected movement
Shifts within 500 ms of user input are excluded — an accordion you clicked is fine. CLS groups shifts into session windows (gaps under 1 s, max 5 s) and reports the worst window. The classic offenders: images with no dimensions, ad slots that grow or collapse, banners injected above content, web fonts swapping in with different metrics.
Field notes
- Lighthouse can't measure INP — nobody's clicking. Its Total Blocking Time is a lab proxy, nothing more.
- LCP stops recording at first user input, so a fast scroller "finishes" LCP early. Field numbers are noisy for reasons like this; watch the trend, not any single session.
- The LCP element is often not what design thinks it is. On mobile it's frequently a text block, not the hero image. Check before optimizing.
- "We have a 98 Lighthouse score" describes one synthetic run on one machine. Ask for the CrUX p75.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
What is Vite? The Build Tool That Made Frontend Development Fast Again
Vite replaced Webpack for a lot of teams without much fanfare. Native ES modules, a dev server that starts in milliseconds, and a production build that doesn't require understanding 300 lines of config. Here's how it works and why the switch is worth it.
PHP API Performance: N+1 Queries, cURL, and Connection Pools
A PHP API case study: fixing an N+1 query, twenty serial cURL calls, missing connection pooling, and stats recalculated on every request with Redis caching.
Inside TypeScript 7: What a Year-Long Rewrite in Go Actually Bought Developers
A deep look at how Microsoft's Go-based TypeScript 7 compiler achieves its speed gains, and what the Visual Studio Code team's year-long migration reveals about adopting it safely.
Node.js vs Deno vs Bun: Picking the Right JavaScript Runtime in 2026
Three JavaScript runtimes. Three different philosophies on what the developer experience should feel like. Here's how they compare on performance, ecosystem, tooling, and the only decision that actually matters for production.