Google no longer ranks strings in isolation.
Interaction to Next Paint has changed the conversation around responsiveness. FID only measured input delay; INP follows an interaction from input to the next frame, so it captures input delay, event-handler processing, and presentation delay. For templates carrying hefty JavaScript, that means the old habit of optimizing page load and calling speed work done no longer holds. An interaction can feel instantaneous on a fast desktop and still produce a poor INP because a single handler triggers layout, a third-party tag blocks the main thread, or hydration competes with the click the user just made.
Start with field data, not a local Lighthouse run. CrUX and your own RUM should segment INP by template, device class, and interaction target. A checkout page with a noisy carousel may have healthy LCP and CLS while its INP is poor only for mobile users tapping quantity controls. Capture attribution with the Event Timing API: event type, target selector, processing start, processing end, and presentation time. That granularity separates an input-delay problem caused by a long task from a processing problem inside a specific handler. Without attribution, teams tend to optimize JavaScript broadly and miss the handful of interactions actually dragging the 75th percentile down.
Once a target is identified, inspect three phases. Input delay is time spent waiting for the main thread before your handler runs. Long tasks from analytics, tag managers, chat widgets, or hydration are common culprits. Processing time is the handler’s own work: state updates, synchronous DOM reads, layout thrash, expensive data transforms, or a framework render that touches too much of the tree. Presentation delay is the browser’s work to paint the next frame, often inflated by oversized style recalculation, complex selectors, or forced synchronous layout. The fix differs by phase, so a generic bundle-size reduction may help LCP without moving INP.
For input delay, audit third-party execution in the Performance panel and consider deferring non-critical tags until after first interaction or idle periods. Where possible, move analytics and personalization to web workers or server-side contexts. For first-party scripts, avoid monolithic hydration; island hydration, partial hydration, and event replay can keep the main thread available until the user actually engages. If a long task is unavoidable, break it into smaller chunks with scheduler.yield() where supported, falling back to a macrotask yield. Yield between independent units of work, not after every function call, because excessive yielding adds scheduling overhead and can delay the visual update you are trying to protect.
For processing time, keep handlers lean and separate critical visual feedback from secondary work. A button press should update the UI immediately; logging, validation against a remote endpoint, and non-essential state reconciliation can follow. Avoid reading layout in a loop or interleaving writes and reads. Batch DOM updates and use requestAnimationFrame for visual changes. In framework code, memoize expensive selectors, reduce state scope, and ensure that a single input does not re-render an entire route. Event delegation can reduce listener overhead, but it is not a substitute for fixing a handler that does too much.
Presentation delay often responds to CSS and rendering discipline. Keep the critical interaction’s DOM subtree small, avoid layout-triggering animations, and prefer transform and opacity for motion. content-visibility can help offscreen rendering, but test it against interaction targets; skipping layout for content that becomes visible during a tap can create surprising delays. Ensure fonts and images near the interaction do not trigger late layout shifts that postpone the next paint.
Finally, measure the interaction, not just the page. Synthetic tests should script real user gestures: open the menu, type into the search field, change a variant, submit a form. Run them on throttled mobile hardware, because desktop CPU headroom hides handler cost. Track INP in RUM with release markers so a framework upgrade or tag change can be tied to regressions. Treat 200 milliseconds as the good threshold and investigate interactions above it before they become the 75th percentile.
INP is less about shaving kilobytes and more about protecting the main thread at the moment of intent. Follow the interaction from input to paint, attribute the delay to its phase, and fix the specific handler or dependency that owns it.



