How does Interaction to Next Paint differ mechanistically from First Input Delay in what it captures about main-thread responsiveness?
Answered 3-minute answer rooted in 2 pages
First Input Delay measured one wait, once: how long the first interaction on a page sat in the queue before its event handlers could start. Interaction to Next Paint measures every click, tap and key press for the life of the page, from the input until the browser paints the next frame, and reports the longest one with a small allowance for outliers. FID could pass while handlers took a long time to run and paint. INP counts that time. INP replaced FID as a Core Web Vital on March 12, 2024.
What each metric covered
| First Input Delay | Interaction to Next Paint | |
|---|---|---|
| Interactions measured | The first one only | All clicks, taps and keyboard interactions |
| Time span | Input until event handlers start | Input until the next frame is presented |
| Phases included | Input delay | Input delay, processing duration, presentation delay |
| Reported value | That single delay | The longest interaction, ignoring one per 50 interactions |
| Status | No longer a Core Web Vital | Core Web Vital since March 12, 2024 |
web.dev’s INP article states the difference in one line: “FID only measured the input delay of the first interaction”. The FID article now carries the notice that FID “is no longer a Core Web Vital, and has been replaced by the Interaction to Next Paint (INP) metric”.
The three phases INP adds up
web.dev defines the life of an interaction in three parts:
- Input delay: from the input until the event handlers start. Long tasks already running on the main thread cause it. This is the only part FID measured, and only for the first interaction.
- Processing duration: the time to run “all event handler callbacks within that frame”.
- Presentation delay: from when the callbacks finish until the browser presents the next frame showing the result. Rendering work, such as style, layout and paint, sits here.
A page can have a short input delay and a slow interaction. For example, imagine a filter button whose handler re-sorts a long product list and re-renders it: the main thread was idle when the click arrived, so the input delay is near zero, but the handler and the re-render take hundreds of milliseconds. FID would have reported that click as fast. INP reports it as slow.
What INP does not count
Hovering, zooming and scrolling are not observed for INP. A page that is slow to scroll has a problem, but INP does not measure it. INP also needs real interactions, which is why it appears only in field data and why a page with no interactions in a visit reports no INP for that visit.
How “longest” is softened
For pages with many interactions, web.dev says, “we ignore one highest interaction for every 50 interactions”. On a visit with 120 interactions, the two slowest are ignored and the third slowest becomes that visit’s INP. On a visit with fewer than 50 interactions, the INP is the single slowest interaction. Google’s threshold applies at the 75th percentile of visits: 200 milliseconds or less is good.
What changed for optimization
FID rewarded one thing: a main thread free enough during load for the first click to start quickly. Under INP, that is still needed, and two more become necessary: making event handlers short, and keeping the rendering work after each interaction small. web.dev’s INP optimization guidance covers both, from yielding to the main thread inside long handlers to keeping DOM size and layout work under control.
INP differs from FID by measuring every interaction from input to the next painted frame, including the time handlers and rendering take, so passing it needs short handlers and light rendering work as well as a main thread that is free when the input arrives.
Answers that share these roots
- How should large single-page applications restructure event handlers to reduce INP without sacrificing interactivity on complex filtering interfaces? shares 1 page
- Why can replacing synchronous JavaScript with requestAnimationFrame callbacks sometimes increase INP rather than decrease it? shares 1 page
- Why do sites that strictly enforce a 200KB JavaScript budget sometimes still fail INP when they rely heavily on CSS animations and complex DOM trees? shares 1 page
- What is the mechanism by which total JavaScript payload size affects INP even when the initial page load appears fast and LCP is within the good threshold? shares 1 page
Leave a Reply