How to Fix INP (Interaction to Next Paint) — Responsiveness Guide
Improve your INP score and make your site respond instantly to user interactions. Covers event handler optimization, main thread management, and debouncing techniques.
What is INP?
Interaction to Next Paint (INP) measures how quickly your page responds to user interactions — clicks, taps, and key presses. Google considers INP good if it's under 200ms. Poor INP (>500ms) means your site feels sluggish and unresponsive.
INP replaced FID (First Input Delay) as a Core Web Vital in March 2024. Unlike FID which only measured the first interaction, INP measures all interactions throughout the page lifecycle.
Common Causes of Poor INP
Fix 1: Break Up Long Tasks
Use setTimeout or scheduler.yield() to break up long tasks:
Fix 2: Debounce Input Handlers
For scroll, resize, and input handlers, debounce to prevent excessive calls:
Fix 3: Use CSS contain for Complex Components
CSS containment tells the browser that a subtree is independent, allowing it to skip re-rendering:
content-visibility: auto can dramatically speed up rendering of long lists by skipping off-screen items.
Test these fixes on your site
Run a free audit to see your current INP score and get prioritized fix recommendations.
Run Free Audit