Core Web Vitals, exactly · senior
INP: phases, what counts, and how to fix a slow interaction
INP is the time from a click, tap or key press until the next frame is painted, reported for one of the slowest interactions of the visit, and it splits into input delay, processing duration and presentation delay, each with different fixes.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Counted: mouse click, touch tap, key press (physical or on-screen). Not counted: hover, scroll, zoom.
- INP is one of the slowest interactions. With many interactions, one highest value is ignored for every 50 interactions, so one rare glitch does not decide the score.
- Input delay: the main thread was busy when the user acted (long tasks, hydration, third-party scripts). Fix: break up long tasks, defer non-urgent work, ship less JS.
- Processing duration: your event handlers are slow. Fix: do the minimum for visual feedback first, then yield (scheduler.yield or setTimeout) before heavy work; in React, mark non-urgent updates with startTransition or useDeferredValue.
- Presentation delay: the frame after the handler is slow to render: big DOM, expensive style/layout, layout thrashing, huge React re-render. Fix: smaller DOM, content-visibility, avoid forced layout, virtualise lists.
- Diagnose with field attribution (web-vitals attribution build: target element and phases), the DevTools Interactions track, and Long Animation Frames (LoAF) entries with script attribution.
- INP is measurable in Chromium, Firefox (since 144) and Safari 26.2+, but CrUX data is Chrome-only.
The red pen
Common traps: mistake → fix
Mistake: "INP is the delay before the handler starts"
Fix: that was FID; INP includes input delay, handler time and the time to paint the next frame.
Mistake: "Fix INP by making the API faster"
Fix: INP stops at the next paint; network time after the paint does not count. Show a loading state fast instead.
Mistake: "Add useMemo everywhere"
Fix: first find which phase is slow; memoisation only helps if re-render work is the cause.
Mistake: "await Promise.resolve() yields to the browser"
Fix: a microtask does not let the browser paint or handle input; use scheduler.yield() or setTimeout.
Easy to hard
Questions interviewers ask, easy to hard
- What is INP and how is it different from FID?
- What are the three phases of an interaction? Give one fix for each.
- Our product listing page has INP 450 ms on mid-range Android. How do you find the cause?
- Which React 19 tools help INP, and when do they not help?
- How do you find INP problems caused by third-party scripts you don't own?
Practise
Practise with these questions
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.