You tap “Add to basket” and nothing happens. You tap again. A moment later the page catches up, and now two items are in your basket. That frustrating lag is exactly what Interaction to Next Paint (INP) measures, and since March 12, 2024 it has been the Core Web Vital for responsiveness, replacing First Input Delay (FID).
INP is harder to pass than FID was. FID only measured the delay before the browser started handling the first interaction. INP looks at the full time from input to the next visual update, for clicks, taps and key presses throughout the visit. Sites that comfortably passed FID often discover INP problems they never knew they had.
Our Core Web Vitals overview introduces INP. This guide goes further: how INP is calculated, the three phases of an interaction, how to find the slow interactions on your site, and the JavaScript and rendering fixes that actually move the number.
Key Takeaways
- A good INP is 200 milliseconds or less at the 75th percentile; above 500 ms is poor.
- INP counts clicks, taps and key presses, not scrolling or hovering, and reports roughly the slowest interaction on the page.
- Each interaction has three phases: input delay, processing duration and presentation delay. Fix the largest.
- Most INP problems come from long JavaScript tasks on the main thread, often from third-party scripts.
- Break up long tasks, do the visual update first and defer the rest, and keep the DOM small.
How INP is calculated
INP observes the latency of every qualifying interaction during a page visit: mouse clicks, taps on a touchscreen, and presses on a physical or onscreen keyboard. Hovering, scrolling and zooming are not counted. Latency is measured from the user’s input to the moment the browser paints the next frame showing the result.
“The final INP value is the longest interaction observed, ignoring outliers.”
— web.dev, Interaction to Next Paint (INP)
To avoid one random hiccup dominating on very interactive pages, INP ignores the single highest interaction for every 50 interactions. Most pages have fewer than 50 interactions, so in practice INP is usually the worst interaction of the visit. As with all Core Web Vitals, Google assesses the 75th percentile of visits, split by mobile and desktop.
| INP value | Rating | What users feel |
|---|---|---|
| ≤ 200 ms | Good | Feedback feels immediate |
| 200 – 500 ms | Needs improvement | Noticeable lag; users may tap again |
| > 500 ms | Poor | Page feels frozen or broken |
The three phases of an interaction
| Phase | What happens | Typical causes | Main fixes |
|---|---|---|---|
| Input delay | Time before event handlers start running | Main thread busy with other tasks: script evaluation during load, timers, third-party tags | Reduce and split JavaScript during load; defer third parties |
| Processing duration | Time spent running event handlers | Heavy handlers doing analytics, state updates, data processing | Do the minimum; yield; defer non-visual work |
| Presentation delay | From handlers finishing to the next frame painting | Large DOM, expensive style and layout, big client-side re-renders | Smaller DOM, content-visibility, avoid layout thrashing |
How to find slow interactions: step by step
- Check field data. Search Console’s Core Web Vitals report and PageSpeed Insights show whether INP fails and on which URL groups. Lab tests cannot measure INP directly because they do not interact with the page.
- Collect attribution data from real users. The
web-vitalsJavaScript library’s attribution build reports which element was interacted with and how long each phase took. Send it to your analytics, for example as a GA4 event. - Reproduce in the lab. Open Chrome DevTools, enable CPU throttling to simulate a mid-range phone, start a Performance recording and perform the slow interaction.
- Read the trace. Look for long tasks (over 50 ms) around the interaction, and see which phase is longest and which scripts run.
- Use Total Blocking Time as a proxy. In Lighthouse, a high TBT during load suggests input delay problems for early interactions.
- Fix, deploy and watch the field data over the next 28 days.
How to improve INP
Yield to the main thread
The browser can only respond to input or paint between tasks. One long task blocks both. Splitting work into smaller tasks lets the browser paint the response to an interaction sooner. The modern way is scheduler.yield(), which Chrome describes as prioritising the continuation of a task over starting new ones. It is available in Chromium-based browsers but not everywhere, so feature-detect it and fall back to setTimeout:
function yieldToMain() {
if (globalThis.scheduler?.yield) {
return scheduler.yield();
}
return new Promise((resolve) => setTimeout(resolve, 0));
}
button.addEventListener('click', async () => {
showSpinner(); // visual feedback first
await yieldToMain(); // let the browser paint
await saveBasket(); // heavier work afterwards
sendAnalytics();
});
Do the visual update first, defer the rest
“The best general advice in optimizing event callbacks is to do as little work as possible in them.”
— web.dev, Optimize Interaction to Next Paint
Update what the user sees, then push analytics calls, saving, spell-checking and other non-urgent work to a later task. This alone often fixes INP on forms, filters and add-to-cart buttons.
Reduce JavaScript during load
- Remove unused code and split bundles so each page only loads what it needs.
- Defer non-critical scripts; see our guide to render-blocking resources.
- Audit third-party tags. Chat widgets, heatmaps, A/B testing and ad scripts frequently cause long tasks. Load them later or only on pages that need them.
- Avoid heavy hydration work in JavaScript frameworks; our JavaScript SEO guide covers rendering strategies.
Cut presentation delay
- Keep the DOM small; large DOMs make every style and layout recalculation slower.
- Use CSS
content-visibility: autoon long off-screen sections so the browser skips rendering them. - Avoid layout thrashing: do not write styles and then immediately read layout values like
offsetHeightin the same task. - Update only the part of the page that changed, rather than re-rendering large components.
Common mistakes
- Testing on a fast laptop. INP problems mostly appear on mid-range and low-end phones. Always throttle the CPU.
- Relying on lab scores. Lighthouse cannot measure INP; a 100 score says nothing about real interactions.
- Running analytics synchronously inside click handlers, delaying the visual response.
- Ignoring tag managers. Dozens of tags firing on every click add up.
- Debouncing in a way that delays feedback. Show something immediately, even if the expensive work waits.
- Fixing only the first interaction. INP considers the whole visit, including menus, filters and accordions used later.
INP is one of three Core Web Vitals; the others are Largest Contentful Paint and Cumulative Layout Shift. Improving responsiveness also tends to lift conversions, which our conversion rate optimisation guide explores further.
Related Guides
- Cumulative Layout Shift (CLS): How to Fix It
- How to Use PageSpeed Insights
- How to Run a Lighthouse Audit (and Act on the Results)
Frequently Asked Questions
What is a good INP score?
200 milliseconds or less at the 75th percentile of page visits. Between 200 and 500 ms needs improvement, and above 500 ms is poor.
When did INP replace FID?
Interaction to Next Paint replaced First Input Delay as a Core Web Vital on March 12, 2024.
Why can't Lighthouse measure INP?
INP needs real user interactions. Lighthouse loads the page without interacting, so it reports Total Blocking Time as a lab proxy instead. Use field data or DevTools recordings of real interactions.
Does scrolling count towards INP?
No. INP measures clicks, taps and keyboard presses. Hovering, scrolling and zooming are not counted.
What usually causes poor INP?
Long JavaScript tasks on the main thread, heavy event handlers, third-party scripts and large DOMs that are slow to re-render.
Conclusion
INP rewards pages that respond the instant a user acts. Find your slowest interactions with field data, identify which phase is slow, then yield to the main thread, defer non-visual work, trim JavaScript and keep rendering cheap. If INP is failing across your templates, our page speed optimization service can profile and fix it, or request a free quote.
References
- Interaction to Next Paint (INP) – web.dev
- Optimize Interaction to Next Paint – web.dev
- Use scheduler.yield() to break up long tasks – Chrome for Developers
- Understanding Core Web Vitals and Google search results – Google Search Central
- Core Web Vitals: What They Are and How to Improve Them – Semrush Blog




