Chapter 4. Understanding Performance

The Metrics That Matter

Google's Core Web Vitals are three measurements of how a page feels to a visitor: how quickly the main content appears, how stable the layout is while it loads, and how quickly the page responds when it is used. A few other metrics help explain them.

Table 4.1. Metrics and their thresholds
MetricGoodPoorMeasured in
Largest Contentful Paint (LCP), Core Web Vital≤ 2.5 s> 4 sField and lab
Cumulative Layout Shift (CLS), Core Web Vital≤ 0.1> 0.25Field and lab
Interaction to Next Paint (INP), Core Web Vital≤ 200 ms> 500 msField only
First Contentful Paint (FCP)≤ 1.8 s> 3 sField and lab
Time to First Byte (TTFB)≤ 0.8 s> 1.8 sField
Total Blocking Time (TBT)≤ 200 ms> 600 msLab only
Speed Index≤ 3.4 s> 5.8 sLab only

Field values are judged at the 75th percentile: a page passes when at least three out of four visits are good.

Largest Contentful Paint (LCP)

How long it takes for the biggest piece of content in the visible part of the page to appear, usually a large image or a heading. To the visitor, this is the moment the page "has loaded".

LCP is improved by sending the page quickly (page caching), getting files that block the page out of the way (file optimization, Optimize CSS Delivery), making the LCP image small (image optimization) and telling the browser to fetch it first (LCP Images).

Cumulative Layout Shift (CLS)

How much the page jumps around while it loads. You have probably tried to tap a link just as an image above it loaded and pushed it down; that is a layout shift. CLS has no unit: 0 means nothing moved.

Layout shifts happen when the browser doesn't know how much space something needs until it has loaded it. They are fixed by reserving the space in advance: see Add Image Attributes and Custom CSS.

Interaction to Next Paint (INP)

How quickly the page responds when a visitor clicks, taps or types. If a menu takes half a second to open after a tap, INP is poor. INP is measured only on real visits, because a lab test doesn't click anything; TBT is its closest lab equivalent.

INP suffers when the browser is busy running JavaScript. Deferring and reducing JavaScript (Defer JavaScript, Reduce Unused JavaScript) and reducing the size of the page (Reduce DOM) all help.

Note

INP replaced an older metric, First Input Delay, in 2024. Older articles may still mention First Input Delay, or Time to Interactive, which PageSpeed no longer reports.

First Contentful Paint (FCP)

How long until the first text or image appears. A fast FCP reassures the visitor that something is happening. It is held back mainly by render-blocking CSS and JavaScript and by a slow server.

Time to First Byte (TTFB)

How long the browser waits for the first part of the page to arrive from your server. Everything else has to wait for it. A page cache reduces it dramatically, because the server sends a stored copy instead of building the page; see the section called “Step 7: Page Caching”.

Total Blocking Time (TBT)

In the lab test, the total time the browser was too busy running scripts to respond to a visitor. It carries the most weight in the mobile performance score, so reducing JavaScript often improves the score more than anything else.

Speed Index

In the lab test, how quickly the visible part of the page fills in. It improves along with FCP and LCP.