Performance
INP explained: Interaction to Next Paint, its thresholds and how to fix it
Interaction to Next Paint (INP) measures how fast a page responds to clicks, taps and key presses. The thresholds, how it is calculated, and how to fix it.
The CrispStats team · · 8 min read
In short
Interaction to Next Paint (INP) measures how long a page takes to show a visible response after a click, tap or key press, and reports roughly the slowest one in a visit. Good is 200 milliseconds or less, needs improvement is up to 500 milliseconds, and poor is above 500, judged at the 75th percentile of real visits. It replaced First Input Delay as a Core Web Vital on 12 March 2024. Almost every slow INP comes from JavaScript keeping the main thread busy, so the fix is to do less work per interaction and yield to the browser often.
You tap “Add to cart” and nothing happens. You tap again. Then two items land in the cart. That gap between the tap and the first visible change is what Interaction to Next Paint measures, and it is the Core Web Vital that most often catches sites that look fast in a lab test.
Everything here comes from Google’s web.dev documentation, mainly the INP article and the INP optimisation guide, read on 23 November 2026. For the other two vitals side by side, see Core Web Vitals in plain English; for LCP and CLS fixes, see how to improve Core Web Vitals.
What is INP?
web.dev defines INP as a metric that “assesses a page’s overall responsiveness to user interactions”. For each interaction, it measures the time from the input until the browser paints the next frame. At the end of the visit, the page’s INP is the longest interaction observed, ignoring outliers. The reason it matters: web.dev cites Chrome usage data showing that 90% of a user’s time on a page is spent after it loads. Load speed is only the start of the experience.
Which interactions count?
| Counted | Not counted |
|---|---|
| Clicking with a mouse | Hovering |
| Tapping a touchscreen | Scrolling |
| Pressing a key on a physical or on-screen keyboard | Gestures with no click, tap or key press |
If a visitor never clicks, taps or types, that visit has no INP at all. Bots and people who only scroll produce no value, which is why INP data is thinner than LCP data for the same page.
What is a good INP score?
| Rating | INP at the 75th percentile |
|---|---|
| Good | 200 ms or less |
| Needs improvement | Over 200 ms, up to 500 ms |
| Poor | Over 500 ms |
The 75th percentile means three out of four visits must be at or under 200 milliseconds for the page to pass. A page can feel fine on your laptop and fail because a quarter of its visitors use slower phones.
How is INP calculated?
Two rules decide the number. First, each interaction’s latency covers three phases. Second, the page’s INP is close to the worst interaction, with an allowance for very busy pages.
The three phases of an interaction
| Phase | web.dev's definition | What usually makes it slow |
|---|---|---|
| Input delay | The time before any callback for the interaction is handled | Other JavaScript already running, often during page load |
| Processing duration | The time for all the callbacks to execute | Heavy event handlers |
| Presentation delay | From the end of the callbacks until the frame is presented | A large DOM, big re-renders, layout and paint work |
The outlier rule
On pages with many interactions, web.dev says INP ignores one highest interaction for every 50. So a visit with 30 interactions reports the slowest one. A visit with 120 interactions ignores the two slowest and reports the third-slowest. This stops one freak delay on a long session from defining the whole page.
A worked example: diagnosing one slow interaction
Say a filter button on a product listing page has a 75th-percentile INP of 360 milliseconds, which needs improvement. Your field data, using the attribution build of Google’s web-vitals library, breaks the slowest interaction down like this:
| Phase | Before | Cause | After the fix |
|---|---|---|---|
| Input delay | 40 ms | A small analytics task was running | 40 ms |
| Processing duration | 250 ms | The click handler filters 2,000 products, updates the URL, sends an event and re-renders the grid | 60 ms |
| Presentation delay | 70 ms | Re-rendering 2,000 cards | 50 ms |
| Total | 360 ms | 150 ms |
The handler is the problem. The fix keeps only the visible work in the handler: show a loading state on the grid, then yield so the browser can paint it. The interaction now ends at that paint. The filtering, URL update and analytics run in the next task. Rendering only the first screen of results, with the rest added as the visitor scrolls, trims the presentation delay. 40 + 60 + 50 = 150 milliseconds, which is good.
How do you fix a slow INP?
The web.dev team lists three fixes as the most effective in its Core Web Vitals priorities: yield often to break up long tasks, avoid unnecessary JavaScript, and avoid large rendering updates. In practice:
1. Yield to the main thread
Any task longer than 50 milliseconds is a long task, and while it runs the browser cannot respond or paint. Split work into pieces and yield between them. scheduler.yield() returns a promise that resolves in a future task; web.dev lists support in Chrome and Edge from version 129 and Firefox from 142, but not in Safari, so use a fallback:
function yieldToMain() { if (globalThis.scheduler?.yield) { return scheduler.yield(); } // Fall back to a new task where scheduler.yield() is not supported return new Promise((resolve) => setTimeout(resolve, 0));}button.addEventListener('click', async () => { showSpinner(); // the visible update first await yieldToMain(); // let the browser paint it saveToServer(); // the rest can wait a frame sendAnalytics();});2. Keep event handlers light
- Do the visible update first. Everything the visitor needs to see goes before the first yield.
- Defer what can wait. Network requests, analytics calls, logging and storage writes can run after the paint.
- Avoid layout thrashing. Reading a size or position right after changing styles forces the browser to lay out synchronously. Batch reads before writes.
3. Reduce rendering work
- Keep the DOM small. Rendering cost grows with the number of elements; add elements as they are needed rather than all at once.
- Use `content-visibility: auto` on long off-screen sections so the browser skips rendering them until needed.
- Re-render less. In React and similar frameworks, a keystroke that re-renders a whole page is the classic INP failure. Keep state close to where it is used.
4. Cut JavaScript you do not need
Input delay is mostly other code that happens to be running. Remove unused bundles, delay non-essential third-party tags such as chat widgets until after load or first interaction, and check what your tag manager loads. Each script competes for the same main thread.
How do you find which interaction is slow?
- Start with field data to find the page and device: Search Console, PageSpeed Insights or your own real-user monitoring.
- Get interaction-level detail. The web.dev guide prefers a real-user monitoring provider that reports the specific interaction, its type, and whether it happened during or after load. The web-vitals library attribution build gives you the target element and the three phases, and Chrome’s Long Animation Frames API shows which scripts ran during a slow frame.
- Reproduce in the lab. In Chrome DevTools, record a performance trace while performing the interaction with CPU throttling on. Interact during page load too, when the main thread is busiest.
INP vs FID: what changed?
First Input Delay (FID) measured only the input delay of the first interaction. It ignored processing and presentation time and every later interaction. INP covers all three phases and every interaction in the visit, which makes it much harder to pass. Google made INP a Core Web Vital on 12 March 2024, replacing FID, and web.dev notes that fewer sites pass INP than passed FID.
| Row | FID (retired) | INP |
|---|---|---|
| Interactions measured | The first one only | All of them, reporting near the worst |
| Phases measured | Input delay only | Input delay, processing and presentation |
| Good threshold | 100 ms or less | 200 ms or less |
| Core Web Vital | Until 12 March 2024 | Since 12 March 2024 |
How CrispStats reports INP
CrispStats collects INP from real visits with LCP, CLS, FCP and TTFB when you add data-vitals to the script tag. It shows the 75th percentile and the share of visits rated good, needs improvement and poor, with INP per page and per device type, so the product listing page from the worked example would show up in the page list, and the device split shows whether phones are the ones failing. The country breakdown covers LCP and TTFB, not INP. See web vitals.
It does not show which element or script caused a slow interaction, or the three-phase breakdown. Use it to find the failing page, then use the web-vitals attribution build or Chrome DevTools for the cause. A vitals regression alert can tell you when a deploy pushes INP up, so you find out from your own data rather than from Search Console weeks later.