HTTP, TLS & Web Performance

Core Web Vitals Explained

Learn what LCP, INP and CLS measure, the thresholds Google publishes for them, how field and lab data differ, and what to fix for each.

Key takeaways

  • LCP measures loading, INP measures responsiveness and CLS measures visual stability.
  • Good scores are LCP within 2.5 seconds, INP within 200 milliseconds and CLS of 0.1 or less.
  • Assessment uses the 75th percentile of real page visits, considered separately for mobile and desktop.
  • Lab tools help you debug, but field data from actual users decides how you're doing.
  • Improving the main image, trimming long script tasks and reserving space for content fix many problems.

Core Web Vitals are three measurements Google defines to describe how a page feels to use. Largest Contentful Paint (LCP) tracks how quickly the main content appears. Interaction to Next Paint (INP) tracks how quickly the page responds to input. Cumulative Layout Shift (CLS) tracks how much things jump around.

Each has a "good" threshold, judged from real visits. This guide explains what each one captures, how it's measured and which changes tend to move it. Metrics and thresholds can be revised, so confirm current definitions in Google's web.dev documentation.

The three metrics and their thresholds

Thresholds for a good rating
2.5 s Largest Contentful Paint: good at or below this; poor above 4 s 200 ms Interaction to Next Paint: good at or below this; poor above 500 ms 0.1 Cumulative Layout Shift: good at or below this; poor above 0.25 2.5 s Largest Contentful Paint: good at or below this; poor above 4 s 200 ms Interaction to Next Paint: good at or below this; poor above 500 ms 0.1 Cumulative Layout Shift: good at or below this; poor above 0.25

Basis: Google web.dev Core Web Vitals thresholds.

Values between the two limits are rated "needs improvement." A page passes when the 75th percentile of visits meets the good threshold for each metric. In other words, three out of four visits need to be that good or better. An average would hide the people having a bad time.

INP replaced an earlier metric called First Input Delay in 2024. Older articles and reports may still mention it.

Largest Contentful Paint

LCP records when the largest image, video frame or block of text in the visible area finishes rendering, counted from the start of navigation. It stands in for "can I see what I came for?"

It's helpful to split LCP into parts:

  1. Time to first byte: waiting for the HTML.
  2. Resource load delay: how long until the browser starts fetching the LCP element's file.
  3. Resource load duration: the download itself.
  4. Element render delay: from download finished to pixels shown.

If the largest element is text, the middle two mostly vanish, though web fonts can still hold it back.

Common fixes:

  • Reduce server response time with caching or a CDN.
  • Put the main image in the HTML with a normal img tag so the browser finds it early.
  • Never lazy-load that image. Mark it as important instead:
<img src="/hero.webp" width="1200" height="600" fetchpriority="high" alt="...">

Interaction to Next Paint

INP looks at clicks, taps and key presses throughout a visit. For each, it measures the time until the browser paints the next frame reflecting the response. The reported value is close to the slowest interaction, with some outliers ignored on pages that have very many.

An interaction has three stages:

What happens between a tap and the next frame
1 Input delay The main thread is busy with other work 2 Processing Your event handlers run 3 Presentation delay Styles, layout and paint produce the frame Input delay The main thread is busy with other work 1 Processing Your event handlers run 2 Presentation delay Styles, layout and paint produce the frame 3

Slow INP is mostly a JavaScript problem. To improve it:

  • Break long tasks into short ones and yield to the browser between them.
  • Show immediate visual feedback, then do heavier work.
  • Defer non-essential code, especially scripts from third parties.
  • Move heavy computation to a web worker.
  • Keep the page's element count reasonable so style and layout stay cheap.

Scrolling and hovering aren't counted as interactions for INP.

Cumulative Layout Shift

CLS scores unexpected movement of visible content. Each shift's score combines how much of the screen was affected with how far things moved. Shifts that happen close together are grouped, and the worst group becomes the page's value. Movement that follows shortly after a user's action, such as opening a menu they clicked, is excused.

The usual culprits and their cures:

  • Images and video without dimensions. Add width and height attributes or a CSS aspect-ratio.
  • Ads, embeds and banners that arrive late. Reserve a box of the right size.
  • Content inserted above what the reader is looking at. Put it below, or reserve room.
  • Web fonts that swap in with different sizes. Choose a close fallback and adjust its metrics; see loading web fonts well.
  • Animations that move layout. Animate transform instead of top, left or height.

Worked examples

Say a product page on mobile has a poor LCP. Developer tools show that the main photo is requested only after a script has run and built the gallery. The download itself is quick; the load delay is the problem. Rendering the first image directly in the HTML lets the preload scanner find it at once, and the gallery script can enhance it afterward.

Now say a search page has poor INP. Typing in the filter box feels sticky. A recording shows that each key press rebuilds a list of every result. Waiting briefly after typing stops, updating only the changed rows and showing fewer results at a time shortens each task.

Finally, say an article shows poor CLS. A newsletter banner appears above the first paragraph a few seconds after load and shoves the text down. Moving it into a reserved slot lower in the page, or overlaying it without moving content, removes the shift. Overlays carry their own usability costs, so use them sparingly.

In each case the metric pointed to a symptom, and the recording showed the cause. Resist applying a generic checklist before you've looked. A change that rescues one template may do nothing on another.

Pitfalls to avoid

  • Optimizing the test instead of the page. Serving something different to testing tools doesn't help visitors, whose data is what counts.
  • Hiding content to win a metric. A fade-in that delays the main text makes the experience worse.
  • Looking only at the home page. Visitors often arrive deep in the site.
  • Judging a fix the next day. Aggregated field data covers weeks of visits.
  • Ignoring consent pop-ups. They can become the largest element, delay interaction or cause shifts, so include them in testing as a first-time visitor would see them.

Field data and lab data

Field data comes from real people on their own devices and networks. Google publishes aggregated figures for sufficiently visited sites in the Chrome User Experience Report, and you'll see them in PageSpeed Insights and Search Console. These cover a rolling period of recent weeks, so improvements show up gradually.

Lab data comes from a controlled test, such as Lighthouse in developer tools. It's repeatable and detailed, which makes it good for debugging. It can't measure INP properly without someone interacting, so it reports Total Blocking Time as a rough indicator.

Two ways of measuring
Field data Real visitors and devices Reflects what users felt Slow to change Needs enough traffic Lab data Simulated device and network Immediate and repeatable Good for finding causes May miss real conditions VS Field data Real visitors and devices Reflects what users felt Slow to change Needs enough traffic Lab data Simulated device and network Immediate and repeatable Good for finding causes May miss real conditions

To collect your own field data, Google's open source web-vitals JavaScript library reports the metrics from visitors' browsers, which you can send to your analytics. Tell visitors what you collect, in line with your privacy obligations. Browser support for the underlying measurements varies, so some visitors won't report every metric.

A practical workflow

  1. Check field data to find which metric and which device type fail.
  2. Group pages by template, since one template fix covers many pages.
  3. Reproduce in the lab with throttling.
  4. Identify the specific element, interaction or shift. Developer tools can highlight each.
  5. Change one thing and retest.
  6. Watch field data over the following weeks.
  7. Add checks so regressions are caught, such as a performance budget.

For the broader process, see running a performance audit.

Supporting measures

Other figures help explain the three. Time to First Byte shows server and network delay. First Contentful Paint marks when anything appears. They aren't Core Web Vitals, but a poor value in either makes a good LCP hard to reach.

How much do they matter?

Google has said its ranking systems take page experience signals, including these metrics, into account, alongside many other factors, with relevance of content remaining central. Passing all three won't rescue a page that doesn't answer the query. The stronger reason to care is that people dislike slow, unresponsive and jumpy pages.

Avoid chasing a perfect lab score for its own sake. Once your real visitors are comfortably in the good range, further effort may be better spent on content or features. Sites with little traffic may have no public field data at all; use your own measurements and sensible lab testing.

Keep a short record of what you changed and when. Because field figures lag behind, that record is what lets you connect a movement in the numbers to a release, and spot a regression before it becomes a habit.

Common questions

Why do my lab and field results disagree?

Real visitors use different devices, networks, screen sizes and caches, and they scroll and click. Shifts that occur later in a visit often never appear in a quick lab load.

Do single-page apps get measured correctly?

Navigations handled entirely in JavaScript have been harder for these metrics to separate, so values can accumulate across views. Browser work in this area continues; check current documentation.

Which metric should I fix first?

Start with whichever is rated poor in field data on your most visited templates. Layout shift is often the quickest to repair.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in HTTP, TLS & Web Performance →

Latest news on this topic