INP became a Core Web Vital on March 12, 2024, replacing First Input Delay (FID). FID measured only the delay before the first interaction was handled. INP looks at all clicks, taps and key presses during a visit and reports one of the slowest, so it catches sluggish menus, filters and add-to-cart buttons that FID missed.
Thresholds at the 75th percentile: 200 ms or less is good, over 500 ms is poor.
What makes up an interaction
- Input delay: the main thread is busy with other work when the user clicks.
- Processing time: your event handlers run.
- Presentation delay: the browser recalculates layout and paints the next frame.
Why JavaScript-heavy sites struggle
Hydration, large bundles, third-party tags and big React re-renders all occupy the main thread. On a mid-range Android phone a task that takes 50 ms on a laptop can take several hundred.
Example fix
A filter checkbox re-renders a 300-item product grid on every click. Show the checked state at once and defer the heavy update:
const [isPending, startTransition] = useTransition();
function onToggle(value) {
setChecked(value); // fast visual feedback
startTransition(() => setFilter(value)); // heavy work, interruptible
}
Other common fixes: split long tasks, yield to the main thread with scheduler.yield() where supported, cut third-party scripts, and reduce hydration.
Common mistakes
- Using Lighthouse to measure INP. It needs real interactions, so use field data (CrUX, Search Console) or a RUM tool. Lighthouse’s Total Blocking Time is only a rough lab proxy.
- Still tracking FID.
How Renderly handles it
We find the slow interactions with field data and fix them in code. See the Next.js SEO audit and Core Web Vitals.