Free SEO audit for new clients — claim yours
Home/Blog/Technical SEO/Interaction to Next Paint (INP): How to Improve It
Technical SEO

Interaction to Next Paint (INP): How to Improve It

Interaction to Next Paint (INP): How to Improve It
Table of contents
  1. Key Takeaways
  2. How INP is calculated
  3. The three phases of an interaction
  4. How to find slow interactions: step by step
  5. How to improve INP
    1. Yield to the main thread
    2. Do the visual update first, defer the rest
    3. Reduce JavaScript during load
    4. Cut presentation delay
  6. Common mistakes
  7. Related Guides
  8. Frequently Asked Questions
    1. What is a good INP score?
    2. When did INP replace FID?
    3. Why can't Lighthouse measure INP?
    4. Does scrolling count towards INP?
    5. What usually causes poor INP?
  9. Conclusion
  10. References

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 valueRatingWhat users feel
≤ 200 msGoodFeedback feels immediate
200 – 500 msNeeds improvementNoticeable lag; users may tap again
> 500 msPoorPage feels frozen or broken

The three phases of an interaction

PhaseWhat happensTypical causesMain fixes
Input delayTime before event handlers start runningMain thread busy with other tasks: script evaluation during load, timers, third-party tagsReduce and split JavaScript during load; defer third parties
Processing durationTime spent running event handlersHeavy handlers doing analytics, state updates, data processingDo the minimum; yield; defer non-visual work
Presentation delayFrom handlers finishing to the next frame paintingLarge DOM, expensive style and layout, big client-side re-rendersSmaller DOM, content-visibility, avoid layout thrashing

How to find slow interactions: step by step

  1. 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.
  2. Collect attribution data from real users. The web-vitals JavaScript 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.
  3. 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.
  4. Read the trace. Look for long tasks (over 50 ms) around the interaction, and see which phase is longest and which scripts run.
  5. Use Total Blocking Time as a proxy. In Lighthouse, a high TBT during load suggests input delay problems for early interactions.
  6. 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: auto on long off-screen sections so the browser skips rendering them.
  • Avoid layout thrashing: do not write styles and then immediately read layout values like offsetHeight in 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.

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

  1. Interaction to Next Paint (INP) – web.dev
  2. Optimize Interaction to Next Paint – web.dev
  3. Use scheduler.yield() to break up long tasks – Chrome for Developers
  4. Understanding Core Web Vitals and Google search results – Google Search Central
  5. Core Web Vitals: What They Are and How to Improve Them – Semrush Blog
Rohit Choudhary
Written byRohit ChoudharyCo-Founder, My SEO Experts

Rohit Choudhary is the co-founder of My SEO Experts and has more than 14 years of hands-on experience in SEO, paid advertising and digital marketing. Since starting out in 2011 he has helped hundreds of businesses grow through practical, data-driven search strategies, and he also serves as a consulting Digital Marketing Director for several US-based companies.

Keep reading

Related articles

Ready to grow your business online?

Get a free, no-obligation proposal tailored to your goals and budget.

CallFree Quote