A hands-on INP clinic: what Interaction to Next Paint measures and how it's scored, a live meter that breaks every interaction into input delay, processing and presentation, and the React fixes that move each one (useDeferredValue, virtualization, yielding to the main thread, splitting handlers) on a deliberately slow app you can feel.
Interaction to Next Paint (INP) answers one question: when a user clicks, taps or types, how long until they see the page respond? It replaced First Input Delay as a Core Web Vital in March 2024, and it's the metric most large React apps fail.
One interaction, three phases. From the moment the user presses a key to the next frame the browser paints:
1 key press next paint
2 │◀── input delay ──▶│◀──── processing ────▶│◀── presentation delay ──▶│
3 │ main thread busy │ your event handlers │ React render + commit, │
4 │ with other work │ (onChange, onClick) │ style, layout, paint │
5 └───────────────────────────── interaction latency ───────────────────┘| Phase | What it is | Typical causes |
|---|---|---|
| Input delay | The event waits for the main thread to be free | A long task already running: hydration, a big render, third-party scripts, timers |
| Processing | Your event handlers run | Expensive work inside onClick/onChange, synchronous analytics, big state updates |
| Presentation delay | Rendering the result until it's on screen | Re-rendering large trees, huge DOM, expensive layout and style recalculation |
In React, the "presentation" phase usually holds the biggest cost: a state update inside a handler triggers a render that runs before the browser can paint.
How it's scored:
Why 200 ms? Below roughly 100 ms, a response feels instant. A typing lag of a few hundred milliseconds is visible, and people start to double-click, retype, or think the page is broken.
The browser can only paint between tasks. JavaScript runs on the main thread in tasks; while a task runs, nothing else happens: no input handling, no painting. Any task over 50 ms is called a long task. Almost every INP fix comes down to one of three moves:
In the next step you'll feel a slow interaction yourself, with a meter that shows all three phases.