How to Profile Slow Interactions and Improve INP
Split each interaction into input delay, processing and presentation time, find the long tasks and scripts behind it, and fix a slow INP score.

How to Profile Slow Interactions and Improve INP
Interaction to Next Paint replaced First Input Delay as a Core Web Vital in 2024, and many sites that passed the old metric fail the new one. INP looks at nearly every tap, click and key press during a visit and reports one of the slowest. A good score is 200 milliseconds or less. To improve it you need to know which interaction is slow and which part of it takes the time.
Three parts of an interaction
Every interaction has three phases. Input delay is the wait between the user's action and the moment event handlers start; it grows when the main thread is already busy with another task. Processing time is how long the handlers run. Presentation delay is the time from the handlers finishing to the next frame appearing on screen, spent recalculating styles, layout and painting.
Each phase has different fixes, so the split matters more than the total.
Recording interactions
Open the Performance panel in Chrome DevTools and start recording without reload. Use the page the way a visitor would: open the menu, add something to the cart, type in search, switch tabs. Stop and save the trace. Then open it in the INP Interaction Profiler.
The profiler reads the event timing records, groups the events of one interaction, such as pointerdown and click, and keeps the longest. Each interaction appears as a bar split into the three phases, and the worst one is marked. Select an interaction to see every long task that overlapped it and a table of the scripts and functions that ran during it, with the time each one used.
If you already collect field data with the web-vitals attribution build, you can type or import those numbers instead and get the same breakdown and advice.
Fixing each phase
A long input delay means something else was running. Look at the long tasks before the interaction. Third-party widgets polling for updates, hydration of a large framework app, and analytics bursts are common. Break long tasks into smaller pieces that yield to the browser, delay non-urgent work until after load, and load heavy widgets only when needed.
A long processing time means your handler does too much before the screen changes. Update the interface first, then yield, then do the rest: sending analytics, syncing state, saving to storage. Avoid reading layout values right after changing styles, which forces extra layout work.
A long presentation delay means the update itself is expensive. Large DOM changes, complex CSS selectors and big layouts are typical causes. Keep the DOM small, render long lists in pages, and use content-visibility for content off screen.
Checking the result
Make one change, record the same interactions again and compare. Because INP takes one of the slowest interactions of a visit, fixing the worst one moves the score most. Real users on mid-range phones are slower than a developer laptop, so throttle the CPU in DevTools when you record, and confirm the result with field data after release.
Common surprises
Keyboard input in search boxes is often slow because every key triggers filtering and rendering of results; debounce the work and keep the typed character on screen at once. Dropdown menus that build their contents on open are another frequent case. And a single third-party script running a long task every few seconds can make every interaction on the page feel slow, even though none of your own code changed.
Where to start
If you have no field data yet, begin with the interactions that matter most for the business: add to cart, filters, menus and form fields. Record each one on a throttled CPU and fix the slowest first.



