In short
INP (Interaction to Next Paint) measures the time between a visitor's action (click, tap, key press) and the visual update that follows. It observes every interaction during the visit and keeps one of the slowest. Google rates it good at 200 milliseconds or less for at least 75% of visits. The work consists of finding which interactions are slow, on which pages, then freeing up the browser's main thread at the moment they happen.
Why it matters
In a web page, almost everything goes through a single thread: JavaScript, style calculation, layout, painting. When this thread is busy, the browser can neither handle the click nor display its result. The visitor taps, nothing moves, and they tap again.
Each interaction breaks down into three phases:
- Input delay: the wait before the event handler starts, because the main thread is already busy.
- Processing duration: the execution of the event handlers.
- Presentation delay: recalculating styles and layout, and painting the next frame.
INP replaced FID (First Input Delay) as a Core Web Vital in March 2024. FID only measured the input delay of the first interaction; INP covers all three phases and the whole duration of the visit, which makes it much more demanding for JavaScript-heavy sites.
What it improves
- Core Web Vitals INP is one of the three.
- Ease of use Menus, filters, search fields and add-to-cart buttons respond immediately. The effect on conversion depends on the site: measure it.
- User errors Fewer double clicks and duplicate form submissions.
- Rankings A modest effect, as with the other Core Web Vitals.
- Crawling No effect. Crawlers do not interact with the page.
How to check
INP can only be measured in the field, since it needs real interactions. Look at the top block of PageSpeed Insights, Search Console (Core Web Vitals report) or CrUX Vis: compliant result, p75 of 200 ms or less on mobile. See analyze real-user CrUX data (opens in a new tab).
Lighthouse in Navigation mode does not measure INP. Its TBT (Total Blocking Time, time the main thread is blocked during loading) is only a hint: a high TBT often signals a poor INP, while a good TBT guarantees nothing.
For a local check, open the “Performance” panel in Chrome DevTools, turn on CPU throttling (4x or more) and use the page: each interaction is shown with its duration and its three phases.
How to implement
Step 1 — Find the slow pages and interactions
CrUX tells you which pages have a poor INP, not which interaction is responsible. To find out, collect attribution data with the web-vitals library:
<script type="module">
import { onINP } from 'https://unpkg.com/web-vitals@5/dist/web-vitals.attribution.js?module';
onINP((mesure) => {
const attribution = mesure.attribution;
navigator.sendBeacon('/rum', JSON.stringify({
page: location.pathname,
inp: mesure.value,
cible: attribution.interactionTarget,
type: attribution.interactionType,
delaiEntree: attribution.inputDelay,
traitement: attribution.processingDuration,
presentation: attribution.presentationDelay,
etatChargement: attribution.loadState,
}));
});
</script>
After a few days, group by page and by target: a handful of elements (mobile menu, filter, cookie banner button, search field) usually account for most of the poor values. The etatChargement field tells you whether the interaction happened during loading or afterwards.
Step 2 — Reproduce
In the “Performance” panel, record the offending interaction with the CPU throttled. Better still: connect a mid-range Android phone and inspect it remotely from chrome://inspect. Note which phase dominates, then read the call stack to identify the responsible script, yours or a third party's.
| Dominant phase | Usual cause | Lever |
|---|---|---|
| Input delay | Scripts running, hydration, long tasks | Less JavaScript at load time, split tasks |
| Processing duration | Event handler too heavy | Do the minimum, defer the rest |
| Presentation delay | Large DOM, re-rendering large areas | Slim down the DOM, limit the updated area |
Reduce input delay
The main thread is busy with something else when the click happens.
- Load less JavaScript: remove unused CSS/JS (opens in a new tab) and defer non-essential scripts (opens in a new tab).
- Reduce third-party code: limit third-party scripts (opens in a new tab). Ads, live chat widgets and A/B testing tools run long tasks at times you do not control.
- On a site rendered on the server and then hydrated, lighten hydration and fix its errors (opens in a new tab).
- Split long tasks (over 50 ms) by yielding to the browser between chunks.
Reduce processing duration
An event handler should do the bare minimum to produce visual feedback, then defer the rest.
function rendreLaMain() {
if (globalThis.scheduler?.yield) {
return scheduler.yield();
}
return new Promise((resolve) => setTimeout(resolve, 0));
}
bouton.addEventListener('click', async () => {
ouvrirPanneau();
await rendreLaMain();
enregistrerStatistiques();
prechargerContenuDuPanneau();
});
Other levers:
- on an input field, debounce expensive processing (search, filtering) instead of running it on every keystroke;
- do not read a dimension (
offsetHeight,getBoundingClientRect) right after modifying the DOM in a loop: each read forces a layout recalculation; - move heavy computations into a Web Worker.
Reduce presentation delay
The larger the DOM, the more each update costs.
- Reduce DOM complexity (opens in a new tab).
- Re-render only the affected area, not the whole page; virtualize long lists.
- Apply
content-visibility: autoto offscreen sections so the browser does not compute their rendering. - Avoid animations that change the layout; prefer
transformandopacity.
Handle the consent banner and tags
The click on “Accept all” is often the slowest interaction on the site: it triggers the loading and execution of every marketing tag at once. Ask the consent platform to close the banner first, then load the tags in stages. Clean up your tag manager: every forgotten tag runs for every visitor. See test before and after cookie consent (opens in a new tab).
WordPress
Versions WordPress 6.4 to 7.1.
INP depends mainly on the theme and the active plugins.
- Deactivate plugins one by one on a staging site and measure again; remove the ones you do not use (opens in a new tab).
- Page builders, sliders and mega menus produce a large DOM and a lot of JavaScript: prefer native blocks for high-traffic templates.
- Optimization plugins offer to delay JavaScript execution until the first interaction (WP Rocket, Perfmatters, LiteSpeed Cache). Loading becomes lighter, but the first interaction can become slower, or even do nothing: test the mobile menu and add to cart after enabling it.
Shopify
Versions Shopify admin, all plans, November 2026.
Every installed app can inject its scripts on every page. Uninstall unused apps, then check that their code has actually disappeared from the theme (theme.liquid, snippets folder) and disable unnecessary app embeds in the theme editor. The admin tracks the store's INP on real-user data: a summary on the Online Store > Themes page, detailed reports in Analytics > Reports.
Next.js
Versions Next.js 14 to 16 (App Router).
- Keep components as Server Components as long as they do not need interactivity: less JavaScript shipped, less hydration.
- Load heavy components on demand with
next/dynamic. - Mark expensive state updates as non-urgent:
'use client';
import { useState, useTransition } from 'react';
export default function Filtre({ produits }) {
const [requete, setRequete] = useState('');
const [resultats, setResultats] = useState(produits);
const [enAttente, startTransition] = useTransition();
function surSaisie(evenement) {
const valeur = evenement.target.value;
setRequete(valeur);
startTransition(() => {
setResultats(produits.filter((produit) => produit.nom.toLowerCase().includes(valeur.toLowerCase())));
});
}
return (
<>
<input value={requete} onChange={surSaisie} aria-busy={enAttente} />
<ul>
{resultats.map((produit) => (
<li key={produit.id}>{produit.nom}</li>
))}
</ul>
</>
);
}
The field stays responsive while the list updates. Load third-party scripts with next/script and the lazyOnload strategy.
Common mistakes
- Judging INP by the Lighthouse score: the lab does not measure it.
- Testing on a powerful computer: INP is decided on mid-range phones. Without CPU throttling, everything looks fast.
- Looking for the cause only in your own code: the offending script is very often a third party's.
- Delaying everything until the first interaction: that very interaction then pays the bill.
- Removing visual feedback to go faster: INP measures the next paint. A simple “in progress” state displayed immediately improves both the metric and the experience.
- Optimizing loading and stopping there: INP covers the whole visit, including late interactions on a page that has been open for a long time.
- Forgetting low-traffic pages: without URL-level CrUX data, only your own real-user data collection (step 1) reveals their slow interactions.
Frequently asked questions
What is INP and what is the right threshold?
INP, or Interaction to Next Paint, measures the time between a visitor's action (click, tap, key press) and the visual update that follows. It observes every interaction during the visit and keeps one of the slowest. Google rates it good at 200 milliseconds or less for at least 75% of visits, and poor above 500 milliseconds.
What is the difference between INP and FID?
INP replaced FID as a Core Web Vital in March 2024. FID only measured the input delay of the first interaction. INP covers the three phases of every interaction, input delay, processing duration and presentation delay, over the whole duration of the visit. It is therefore much more demanding, especially for JavaScript-heavy sites.
How do I find the interactions that hurt INP?
CrUX tells you which pages have a poor INP, not which interaction is responsible. Collect attribution data with the web-vitals library: target element, interaction type and duration of each phase. After a few days, group by page and by target; a handful of elements, such as the mobile menu, a filter or the cookie banner button, usually account for most of the poor values.
Why is INP poor when the Lighthouse score is good?
Because Lighthouse in Navigation mode does not measure INP: it does not interact with the page. Its TBT is only a hint, and a good TBT guarantees nothing. INP is decided by real interactions, sometimes late ones, often on mid-range phones, and the offending script is very often a third party's. Reproduce the interaction in the Chrome Performance panel with the CPU throttled.
Resources
- web.dev: Interaction to Next Paintweb.dev
- web.dev: Optimize INPweb.dev
- web.dev: Find slow interactions in the fieldweb.dev
- web.dev: Optimize long tasksweb.dev
- MDN: Scheduler.yield()developer.mozilla.org
- web-vitals library on GitHubgithub.com
- React: useTransitionreact.dev
Updated on
Topic checklist (PDF)