Sub topic 7
Page experience and usability
This chapter covers what Google means by page experience, which measurable parts of it feed into ranking, and how to find and fix problems. It assumes you know how crawling, indexing and serving work, and that you can read basic HTML and a little JavaScript. It also assumes you have seen the earlier chapters on relevance and quality.
What page experience is, and what it is not
Page experience describes how a visit to a page feels to the person using it. It covers loading speed, responsiveness to taps and clicks, visual stability, mobile usability, security, and whether the content is easy to reach.
Google does not have one "page experience score" or one ranking system with that name. Its documentation says its core ranking systems look at many signals that line up with good page experience, and that Core Web Vitals are used by those ranking systems. Treat page experience as a family of signals rather than a single switch.
Google also states that it tries to show the most relevant content even when page experience is poor. A slow page that answers a query exactly can outrank a fast page that only loosely matches. Page experience mostly matters when many pages are comparably relevant and useful. It also matters because it affects what visitors do after they arrive, whatever it does to rankings.
| Idea | What it answers | Example |
|---|---|---|
| Relevance | Does the page match the query? | A repotting guide for the query "repot snake plant" |
| Quality | Can the content be trusted? | Written by someone with real plant experience |
| Usefulness | Does it help the visitor finish the task? | Clear steps, readable on a phone |
| Page experience | Is the visit smooth and safe? | Loads quickly, no layout jumps, uses HTTPS |
Core Web Vitals
Core Web Vitals are three metrics that measure real users' loading, interactivity and visual stability.
| Metric | Measures | "Good" threshold |
|---|---|---|
| Largest Contentful Paint (LCP) | Time until the largest visible element (often a hero image or heading block) renders | 2.5 seconds or less |
| Interaction to Next Paint (INP) | How long the page takes to visually respond after clicks, taps and key presses | 200 milliseconds or less |
| Cumulative Layout Shift (CLS) | How much visible content moves unexpectedly | 0.1 or less |
INP replaced First Input Delay (FID) as a Core Web Vital in March 2024. FID only measured the delay before the first interaction was handled. INP considers interactions across the whole visit, so it is much harder to pass.
A page is judged "good" for a metric when at least 75% of page loads meet the threshold. This is the 75th percentile. The same URL, or a group of similar URLs, passes or fails as a whole, so a few fast loads on your own laptop do not tell you how the page performs for everyone.
Field data and lab data
There are two kinds of measurement, and mixing them up is a common error.
- Field data comes from real Chrome users and is collected in the Chrome User Experience Report (CrUX). It reflects real devices, networks and behavior. Search Console's Core Web Vitals report and the field section of PageSpeed Insights use it.
- Lab data comes from a simulated load in a controlled environment, such as Lighthouse. It is repeatable and good for debugging, but it does not capture real users and cannot measure INP without scripted interactions.
A page can score 98 in Lighthouse and still fail in the field, because real visitors use slower phones and networks. Field data shows how real visitors experience the page. Lab data helps you work out why.
Placeholder removed; the diagram follows.
Why field data is slow to change
CrUX data is aggregated over a rolling 28-day window. After you deploy a fix, the reports improve gradually as new visits replace old ones. Expect to wait several weeks before the status changes to "good". Do not conclude that a fix failed after two days.
Measuring vitals in your own pages
You can collect field data from your own visitors with the open-source web-vitals library. This lets you see problems before CrUX reports them, and on pages or audiences CrUX does not cover.
<script type="module">
import { onCLS, onINP, onLCP } from "https://unpkg.com/web-vitals@4?module";
function report(metric) {
// metric.name is "CLS", "INP" or "LCP"; metric.value is the measurement
const body = JSON.stringify({
name: metric.name,
value: metric.value,
id: metric.id,
page: location.pathname
});
navigator.sendBeacon("/vitals", body);
}
onCLS(report);
onINP(report);
onLCP(report);
</script>The /vitals endpoint is something you would build on your own server. sendBeacon is used because it delivers data reliably while the page is being closed, which is when CLS and INP are often finalized. To judge your own results the way Google does, compute the 75th percentile of each metric across all collected values, not the average.
Fixing the most common causes
Slow LCP
LCP is usually an image, a video poster, or a large block of text. Typical causes are a slow server response, a render-blocking stylesheet or script, and a hero image that the browser discovers late.
- Reduce server response time with caching or a CDN.
- Serve appropriately sized, compressed images (for example WebP or AVIF).
- Do not lazy-load the LCP image. Lazy loading delays the very element you want early.
- Tell the browser the hero image is important with
fetchpriority="high".
<img src="/img/snake-plant-hero.webp"
width="1200" height="800"
fetchpriority="high"
alt="A snake plant in a terracotta pot beside a window">High CLS
Layout shifts happen when something changes size or arrives after surrounding content has been drawn. Frequent culprits are images without dimensions, ads and embeds inserted without reserved space, web fonts that swap in with different metrics, and banners injected above existing content.
The image above already helps. Giving width and height lets the browser reserve the correct space before the file arrives. For ads or embeds, reserve space with CSS:
.ad-slot {
min-height: 250px;
aspect-ratio: 300 / 250;
}Shifts that occur within 500 milliseconds of a user action, such as opening a menu, are excluded from CLS because the user expects them.
Poor INP
INP is high when the main thread is busy and cannot paint a response to a click. Typical causes are long JavaScript tasks, heavy event handlers, large DOM updates, and third-party scripts such as tag managers and chat widgets.
- Break long tasks into smaller pieces so the browser can paint between them.
- Do the minimum work in the event handler. Show the visual change first and defer the rest.
- Remove or delay third-party scripts that are not essential.
- Keep the DOM small. Very large pages make every update slower.
The following pattern yields to the browser between chunks of work:
async function processItems(items) {
for (const item of items) {
handle(item); // your own per-item work
// let the browser handle input and paint before continuing
await new Promise((resolve) => setTimeout(resolve, 0));
}
}In real code, process several items per yield rather than one, otherwise the total time grows because each setTimeout adds a small delay.
Mobile usability and mobile-first indexing
Google uses mobile-first indexing. It crawls and indexes pages mainly as a smartphone browser sees them. If your mobile page has less content than the desktop page, the missing content is effectively missing from the index.
Check these basics:
- The page includes a viewport meta tag so it scales to the device width.
- Mobile and desktop versions have the same primary content, headings, structured data and meta tags.
- Tap targets are large enough and not packed too tightly.
- Text is readable without zooming.
- Images and video on mobile are crawlable and use supported formats.
<meta name="viewport" content="width=device-width, initial-scale=1">Google retired the standalone Mobile-Friendly Test and the Mobile Usability report in Search Console at the end of 2023. Use Lighthouse, Chrome DevTools device emulation, and testing on real phones instead. The URL Inspection tool still shows how Googlebot renders the page.
Security and intrusive elements
Several other signals fall under page experience.
- HTTPS: Google uses HTTPS as a lightweight ranking signal, and browsers warn users about insecure pages. Serve every page over HTTPS and redirect HTTP to it.
- Safe browsing: Pages that host malware or deceptive content can be flagged, which harms both ranking and trust. Search Console's Security issues report lists detected problems.
- Intrusive interstitials: Full-screen pop-ups that cover the main content right after a visitor arrives from search make the content hard to reach. Legal notices such as cookie consent and age checks are acceptable, and so are banners that use a reasonable amount of screen space.
- Content that is easy to find: Heavy ads above the fold, or content hidden behind multiple clicks, undermine usefulness.
What Search Console shows now
The Page experience report was removed from Search Console in December 2023. Google said this did not change how Core Web Vitals or other signals are used in ranking. The Core Web Vitals report remains and groups URLs into Good, Needs improvement and Poor for mobile and desktop, based on CrUX data. URLs without enough field data do not appear in the report.
Search Console's Core Web Vitals report groups similar URLs. A single template problem, such as a missing image size in a product page layout, can fail thousands of URLs at once. Fix the template, then use the "Validate fix" option to ask Google to recheck.
Common mistakes
- Treating page experience as a replacement for relevance and quality. It supports them and does not replace them.
- Relying on lab scores and ignoring field data.
- Expecting immediate changes in Search Console after a fix, despite the 28-day window.
- Lazy-loading the LCP image.
- Hiding content in the mobile version, which removes it from the index under mobile-first indexing.
- Adding many third-party scripts without measuring their effect on INP.
Exercise
A page scores 95 in Lighthouse, yet Search Console reports it as Poor for INP on mobile. Give two possible reasons for the difference and say which kind of data you would use to investigate each.
Show answer
Lighthouse is lab data with a simulated load and no real user interactions, so it does not measure INP the way real visitors experience it. Real users on slower phones may trigger long tasks, for example heavy click handlers or third-party scripts, that the lab run never exercised. Use field data (CrUX, or your own web-vitals collection) to confirm which interactions are slow, then reproduce them in Chrome DevTools' Performance panel (lab) to find the long task responsible.
Exercise
Your product pages have a CLS of 0.28 in field data. The template shows product images without width and height attributes and inserts a "free shipping" banner above the title after a script loads. What changes would you make, and how long before Search Console reflects them?
Show answer
Add width and height attributes (or a CSS aspect-ratio) to the product images so the browser reserves their space. Reserve fixed space for the banner with a min-height, or render it on the server so it does not push content down after load. Because CrUX data uses a rolling 28-day window, expect the Core Web Vitals report to improve over several weeks, and use "Validate fix" once the changes are deployed.
Exercise
Your desktop page contains a comparison table and a FAQ section that are removed from the mobile layout to save space. Why is this a problem for search, and what should you do?
Show answer
Google uses mobile-first indexing, so it indexes the mobile version. Content missing there is effectively absent from the index and cannot help the page rank. Make the same primary content available on mobile, for example in collapsible sections that are still present in the HTML, and verify with the URL Inspection tool's rendered view.