How to Optimize Core Web Vitals (2026 Guide)
What Google says Core Web Vitals do for ranking, and the fixes for LCP, INP and CLS measured in Chromium: yielding cut a click's time to paint from about 310 ms to under 16, and image dimensions only stop layout shift when they match the file.
What Google Says About Core Web Vitals
Google's page experience documentation (updated September 22, 2026) says Core Web Vitals are used by its ranking systems, and in the same breath that there is no single page experience signal, that good scores in Search Console or other tools do not guarantee top rankings, and that Google will still show the most relevant page even when its page experience is poor. Treat the metrics as user experience targets that can tip close calls, not as a ranking lever.
| Metric | Measures | Good |
|---|---|---|
| Largest Contentful Paint (LCP) | When the main content appears | within 2.5 s |
| Interaction to Next Paint (INP) | How quickly the page shows a response to clicks, taps and key presses | under 200 ms |
| Cumulative Layout Shift (CLS) | How much content jumps around | under 0.1 |
INP replaced First Input Delay in March 2024. All three are judged on field data from real Chrome users, which is what Search Console's Core Web Vitals report shows, separately for mobile and desktop.
LCP: Get the Main Content Painted
LCP has four parts: server response time, the delay before the browser starts loading the LCP resource, its download time, and the render delay before it is painted. Know which one is large before fixing anything. When we ran Lighthouse on our own page speed guide, mobile LCP was 4.16 seconds and 3.4 of them were render delay: the text had arrived, but the main thread was busy, mostly with an analytics script.
- For an image: put it in the HTML rather than injecting it with JavaScript, mark it
fetchpriority="high", and do not lazy-load it. - For text: make sure the font does not hide it while loading (
font-display), and keep render-blocking CSS small. - For everything: reduce or defer the scripts that keep the main thread busy during load.
INP: Show the Response Before Doing the Work
INP measures the time from an interaction to the next paint, so a handler that does all its work before returning makes the user wait for all of it. We measured a button whose click handler runs 300 ms of work, in Chromium 141 with the Event Timing API:
| Click handler | Time to the next paint |
|---|---|
| Updates the button text, then does 300 ms of work | 312 ms |
| Updates the button text, yields to the browser, then does the same work | under 16 ms (below the API's reporting threshold) |
The work still takes 300 ms. Yielding lets the browser paint the "Saving..." feedback first, which is what the user sees and what INP measures:
const yieldToMain = () =>
('scheduler' in window && 'yield' in scheduler)
? scheduler.yield()
: new Promise((resolve) => setTimeout(resolve, 0));
button.addEventListener('click', async () => {
button.textContent = 'Saving...';
await yieldToMain();
saveEverything(); // the slow part
});
The fallback matters: MDN's compatibility data lists scheduler.yield() in Chrome and Edge 129 and Firefox 142, but not in Safari. For long work, yield between chunks too, and move pure computation into a Web Worker.
CLS: What Actually Moves the Page
We loaded a paragraph under an image that arrives 0.6 seconds late, and under a 120 px notice inserted after 0.6 seconds, and summed the layout shifts Chromium reported:
| Case | CLS |
|---|---|
| Image without width and height attributes | 0.412 |
| Image with width and height matching the file's proportions | 0 |
| Image with width and height that do not match the file | 0.211 |
| Notice inserted above the text | 0.076 |
| Notice inserted into space reserved with min-height | 0 |
The image without dimensions produced more than four times the 0.1 limit. Width and height attributes fix it only when they match the image: the browser reserves space from their ratio, then switches to the file's real ratio when it loads, so a 600 by 300 attribute pair on a square image still moves everything. For injected content (notices, ads, embeds), reserve the space up front. For web fonts that change line length when they swap in, match the fallback's metrics with size-adjust and the other font metric overrides; our Font Loading Strategy generator writes them.
Measuring Your Own Pages
Start with field data: Search Console's Core Web Vitals report groups your URLs by status, and PageSpeed Insights shows the Chrome UX Report numbers for a page or origin when there is enough traffic. Use lab tools (Lighthouse, the DevTools Performance panel) to find causes and to compare versions of a page. For your own field data, the PerformanceObserver API used in the tests above reports layout shifts and interaction timings from real visitors. The Core Web Vitals Cheatsheet summarizes the causes and fixes on one page.
Frequently Asked Questions
Do Core Web Vitals really affect rankings?
What replaced First Input Delay?
How do I check my Core Web Vitals?
Use the Core Web Vitals Cheatsheet — free, no signup required.
⚡ Open Core Web Vitals Cheatsheet- [1]Google Search Central, Understanding page experience in Google Search results (updated Sep 22, 2026) ↗
- [2]Google Search Central, Understanding Core Web Vitals and Google search results (updated Dec 10, 2025) ↗
- [3]MDN browser-compat-data, api.Scheduler.yield, checked Oct 13, 2026 ↗
- [4]W3C, Event Timing API (interaction durations used for INP) ↗
- [5]WICG, Layout Instability API (layout-shift entries used for CLS) ↗
- [6]WHATWG HTML, rendering: width and height attributes mapped to aspect-ratio ↗