How to Improve INP (Interaction to Next Paint) Scores
When Google replaced First Input Delay with Interaction to Next Paint as a Core Web Vital, a lot of site owners discovered their "good" scores were suddenly "needs improvement." FID only measured the delay before the browser could start responding. INP measures the whole interaction: from click to the next visual update. It's a much more honest metric, and much harder to game.
I've spent a lot of time fixing INP since the switch. Here's what I've learned.
What INP Actually Measures
INP looks at all the interactions on a page (clicks, taps, key presses) and reports the worst ones. Technically it's the 98th percentile of interaction latency. In plain terms: it measures how sluggish your page feels when people actually use it.
Google's thresholds: under 200 milliseconds is good, 200 to 500 needs improvement, over 500 is poor. The tricky part is that INP is measured from real users, not lab tests. Your page might feel fine on your fast laptop and still score poorly on a mid-range phone.
Finding What's Hurting Your Score
Start in PageSpeed Insights or the CrUX dashboard in Search Console. But here's the thing most guides skip: INP problems are interaction-specific. You need to know which interactions are slow, not just that the page is slow.
In Chrome DevTools, open the Performance panel, start recording, and interact with the page the way a user would: click menus, type in search, toggle accordions, submit the form. Stop recording and look at the "Interactions" track. Long tasks (the red blocks) during interactions are your targets. Click into them to see exactly which JavaScript ran.
The pattern I see most: a click triggers a framework re-render, a state update, some DOM manipulation, and maybe an analytics call, all synchronously. Each piece is small. Together they blow past 200ms on a slower device.
The Fixes That Actually Work
Break up long tasks. This is the number one fix. If a single JavaScript task runs longer than 50ms, it blocks the browser from responding to the user. Split heavy work with setTimeout, requestIdleCallback, or better, move it off the main thread with a Web Worker. I fixed one site's INP by moving a client-side search filter into chunks that yielded to the browser every 50ms. Same functionality, dramatically better score.
Defer non-essential work on interaction. When someone clicks "add to cart," the cart update is essential. The analytics event, the recommendation refresh, and the social share count update are not. Defer everything that isn't the direct response to the interaction. Users perceive speed based on how fast the thing they asked for happens.
Reduce JavaScript on interactive pages. Every kilobyte of JS is potential main-thread work. Audit what's actually needed for the interaction to feel instant. Third-party scripts are the usual suspects: chat widgets, personalization tools, and A/B testing libraries that attach heavy listeners to every click. I've seen a single chat widget add 150ms to every interaction on a page.
Optimize event handlers. Debounce search inputs so you're not re-rendering on every keystroke. Use event delegation instead of attaching listeners to hundreds of elements. Avoid layout thrashing: don't read from the DOM and write to it in alternating steps inside a loop, because each read forces the browser to recalculate layout.
Be careful with frameworks. Heavy client-side frameworks can make INP worse because every interaction may trigger re-renders of large component trees. This doesn't mean ditching your framework. It means being deliberate: memoize expensive components, avoid re-rendering lists on every keystroke, and consider whether that slick animated transition is worth 300ms of input delay.
A Realistic Testing Workflow
Lab tools can't fully measure INP because it requires real interactions, but you can approximate:
- Record a DevTools Performance trace while interacting naturally
- Identify the slowest interactions and their long tasks
- Fix the biggest offender
- Re-record and compare
- Validate with field data in Search Console after deploying (this takes weeks, so be patient)
Don't chase a perfect score on every page. Focus on your highest-traffic templates: the homepage, key landing pages, product pages, checkout. A site with good INP on its money pages and mediocre INP on its privacy policy is a site that's doing fine.
The Usual Suspects: What Causes Bad INP
After fixing INP on enough sites, I recognize the same culprits. If your score is poor, check these first.
Third-party scripts are the biggest offender by far. Chat widgets, personalization engines, consent managers, and A/B testing tools attach listeners to clicks and run heavy code on every interaction. I audited one site where a personalization script added 250ms to every single click. The marketing team loved the tool. The users experienced a sluggish site. We deferred it to load after the first interaction, and INP dropped into the green.
Hydration overhead is the framework-era culprit. Server-rendered pages that then "hydrate" with JavaScript can have a window where the page looks interactive but isn't, or where the first click triggers a massive hydration task. If your INP problems cluster on the first interaction, hydration is the prime suspect.
Oversized DOMs make everything slower. Pages with tens of thousands of DOM nodes force the browser to do more work on every interaction: style recalculation, layout, paint. Infinite-scroll pages and data-heavy dashboards are the typical victims. Virtualizing long lists (rendering only visible rows) is the structural fix.
Synchronous animations and transitions on interaction are a subtler cause. That satisfying 400ms animated menu transition? It's 400ms of the browser being busy instead of responding. Keep interaction animations short and off the main thread where possible.
Measuring INP in the Field
Lab testing gets you partway, but INP is a field metric, and field measurement has its own discipline.
The Chrome UX Report in Search Console and PageSpeed Insights shows your real-user INP by device category. Pay attention to the mobile/desktop split. I regularly see sites with good desktop INP and poor mobile INP, because the same JavaScript runs on much weaker hardware.
For deeper analysis, I deploy the web-vitals JavaScript library with attribution enabled. It reports not just the INP value but what caused it: which interaction, which script, how long each phase took (input delay, processing time, presentation delay). That attribution is the difference between "INP is bad" and "the search autocomplete handler is bad," and it turns a vague problem into a specific ticket.
One caution: field data lags. After deploying a fix, CrUX data takes up to 28 days to fully reflect it. Don't panic if the score doesn't move in week one. Validate with lab traces immediately, then let the field data catch up.
What I Tell Clients
INP is the Core Web Vital that most directly measures user experience, which is why Google made the switch. A fast-loading page that freezes when you click things is not a fast page. The good news: INP problems are almost always JavaScript problems, and JavaScript problems are fixable with focused engineering. Start with the Performance panel, find the long tasks, break them up. It's unglamorous work, but it's the work that moves the metric.