Core Web Vitals

LCP ≤ 2.5s, INP ≤ 200ms, CLS ≤ 0.1 — what each measures, how to read them in the field (CrUX) vs the lab (Lighthouse), and which fixes move which metric.

About 26 min read3-question knowledge check

The mental model

Core Web Vitals are three questions a user asks in the first few seconds of a page, turned into numbers:

  • Is it there yet? — Largest Contentful Paint (LCP). How long until the biggest thing above the fold is painted.
  • Does it answer me? — Interaction to Next Paint (INP). When I tap, how long until the screen changes.
  • Does it stay still? — Cumulative Layout Shift (CLS). Did the button move as my thumb came down.

The analogy that sticks is a restaurant. LCP is how long before the food arrives. INP is how long the waiter takes to react when you raise your hand. CLS is whether someone keeps sliding your plate around while you eat. A restaurant can score perfectly on one and be unbearable on the others, which is exactly why Google measures three numbers instead of one "speed score".

**Why this exists.** Before Core Web Vitals, "fast" was argued rather than measured. Teams quoted DOMContentLoaded or the onload event, both of which are almost unrelated to what a user perceives — a page can fire onload in 800ms and still show a blank rectangle where the hero image will be for another four seconds. Vitals were designed to be *user-centric* (they measure perception, not machine events), *field-measurable* (they can be collected from real devices via PerformanceObserver), and thresholded (there is a defined pass mark, so the conversation stops being subjective).

The single most misunderstood point: the pass mark is the 75th percentile of real page loads over a 28-day window, split by device class. Not your laptop. Not the median. Three-quarters of your real visits, most of them on mid-tier Android phones on congested networks, must be under the threshold. That is why a page that feels instant on a MacBook can fail its vitals outright.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision