Full answer
Core Web Vitals are three user-centred metrics that Google publishes and uses as part of its page experience signals.
- LCP (Largest Contentful Paint) is the time from the start of navigation until the biggest image or text block in the viewport is painted. Good is 2.5 seconds or less. Above 4 seconds is poor.
- INP (Interaction to Next Paint) looks at the clicks, taps and key presses during a visit. For each one it measures the time from the input until the browser can paint the next frame. The reported value is close to the slowest interaction. Good is 200 milliseconds or less. Above 500 milliseconds is poor. INP replaced First Input Delay (FID) as a Core Web Vital in March 2024.
- CLS (Cumulative Layout Shift) adds up unexpected movements of visible elements. It has no unit. Good is 0.1 or less. Above 0.25 is poor.
A page passes a metric when the 75th percentile of real visits meets the good threshold. That means three out of four visits must be good. A fast median can hide a slow tail.
These numbers come from field data, which is real users on real devices, collected by the Chrome User Experience Report (CrUX) or your own monitoring. Lighthouse produces lab data. It cannot measure INP because there is no real user, so it reports Total Blocking Time as a rough stand-in.
The thresholds can be revised, so check web.dev when preparing for an interview.
The snippet in this answer records LCP and CLS with plain browser APIs. For INP, use the small web-vitals library, because INP needs interaction grouping that is long to write by hand.
<h1 id="title">Course catalogue</h1>
<script>
const vitals = { lcp: 0, cls: 0 };
new PerformanceObserver((l) => { vitals.lcp = l.getEntries().at(-1).startTime; })
.observe({ type: 'largest-contentful-paint', buffered: true });
new PerformanceObserver((l) => {
for (const e of l.getEntries()) if (!e.hadRecentInput) vitals.cls += e.value;
}).observe({ type: 'layout-shift', buffered: true });
window.vitals = vitals;
</script>Run in headless Chrome 156 through Playwright. Two full runs gave the same results. The page was run in headless Chrome. LCP was greater than zero and CLS was zero because nothing moved. INP was not measured. The simple CLS sum here adds every shift, while the official metric uses the worst 5 second session window.
Key points
- LCP is loading, INP is responsiveness, CLS is visual stability.
- Good values: LCP up to 2.5 s, INP up to 200 ms, CLS up to 0.1.
- Assessment uses the 75th percentile of field data.
- INP replaced FID in March 2024.
- Lighthouse is lab data and cannot report INP.
Common mistakes
- Saying FID is still a Core Web Vital.
- Treating the lab score as the Core Web Vitals result.
- Describing CLS as a time in seconds.
- Quoting the average instead of the 75th percentile.
Follow-ups
- Why is the 75th percentile used and not the median?
- Which of the three can you not measure in Lighthouse, and why?
- Does a good Lighthouse score guarantee passing the field assessment?
Tips
- Give one cause and one fix for each metric to show practical depth.
- Mention that thresholds are published by web.dev and may change.