18 years of SEO experience
    Technical SEO 10 min read

    INP Optimisation: How to Fix Interaction to Next Paint

    Paul Gordon — Founder, BeFound Search
    Founder, BeFound Search ·
    INP Optimisation: How to Fix Interaction to Next Paint
    Direct Answer

    INP (Interaction to Next Paint) replaced FID in March 2024. Poor INP is caused by long tasks running on the browser's main thread during user interactions — heavy JavaScript execution, third-party scripts firing during interactions, framework re-rendering cascades, and layout thrashing from synchronous DOM read-write cycles. The target is below 200ms. The primary fix approach is identifying long tasks using Chrome DevTools Performance panel and breaking them into smaller chunks or deferring non-critical execution.

    Why INP Replaced FID

    Interaction to Next Paint replaced First Input Delay as a Core Web Vital in March 2024. FID measured only the input delay before processing began — not the full response time. A page that processed input instantly but then took 600ms to update the screen scored well on FID but failed spectacularly on user experience. INP closes this gap by measuring the complete round-trip: from the user's interaction to the browser's visual response, across all interactions during the page visit — not just the first one.

    Google's threshold: INP below 200ms is Good. 200–500ms is Needs Improvement. Above 500ms is Poor. Our technical SEO service covers INP remediation alongside LCP and CLS — because many sites that passed CWV on FID now fail on INP and don't know it.

    What Causes Poor INP

    BeFound Search — Technical SEOInteraction to Next Paint (INP) Optimisation<200msGood INP200–500msNeeds work>500msPoor2024replaced FIDINP Fix Checklist✓Break long tasks (>50ms) into chunks✓Use scheduler.yield between tasks✓Defer non-critical JavaScript✓Avoid heavy event listener stacks✓Use web workers for CPU tasks✓Audit third-party scripts✓Optimise React re-renders✓Debounce scroll/input handlers✓Measure with Chrome DevTools✓Use requestAnimationFrame wisely1Baseline CrUX 2Profile DevTools 3Long task audit 4Optimise JS 5VerifyTasks>50ms block INPReactre-renders risk3P scriptsmain offendersFielddata is truthbefoundsearch.com — INP Optimisation: How to Fix Interaction to Next Paint

    Long tasks on the main thread. The primary cause of INP failures. When JavaScript is executing on the main thread — processing a click handler, running a framework re-render cycle, executing third-party scripts — the browser cannot respond to user interactions until the current task finishes. If a main thread task takes 400ms to complete, any interaction during that 400ms will have an INP of at least 400ms. Fix: break long tasks into smaller chunks using scheduler.yield() or setTimeout, defer non-critical JavaScript execution.

    Heavy event handlers. Interaction handlers (click, keydown, touchstart) that trigger extensive synchronous JavaScript execution — large state updates, complex DOM operations, expensive calculations — increase INP for those specific interactions. Fix: profile event handlers in Chrome DevTools, identify expensive operations within them, move non-critical operations out of the synchronous handler using requestAnimationFrame or microtasks.

    Third-party scripts executing during interaction. Analytics scripts, ad networks, chat widgets, and tag manager payloads often run on the main thread and can execute during user interactions, extending INP. Fix: audit third-party scripts using the Performance panel — identify which third-party scripts are creating long tasks. Defer non-essential third-party scripts using async/defer and load them after the main interaction-critical JavaScript.

    Framework re-rendering overhead. React, Vue, and Angular applications can create INP problems when interactions trigger extensive component re-rendering. A click that updates global state and causes 200 components to re-render will have poor INP on that interaction. Fix: optimise state management to minimise re-render scope (useMemo, useCallback in React), virtualise long lists, use shouldComponentUpdate or React.memo to prevent unnecessary re-renders.

    Layout recalculation triggered by interaction. Interactions that trigger synchronous CSS layout recalculation — JavaScript that reads layout properties and writes DOM changes alternately — cause browser layout thrashing and extend INP. Fix: batch DOM reads and writes separately, use CSS classes for state changes instead of inline style manipulation.

    The Diagnostic Approach

    Open Chrome DevTools Performance panel. Start a recording. Interact with the page (click buttons, type in fields, scroll). Stop the recording. Look for interactions in the Interactions lane and long tasks in the Main thread lane. Click on a long task to see the call stack — which JavaScript functions are responsible for the longest execution time.

    For production monitoring: install the web-vitals library and log INP values from real user sessions to your analytics platform. Real user INP data reveals which specific interactions and page types have the worst performance — prioritising fix effort correctly.

    Quick Wins

    The fastest INP improvements: switch from click event listeners to pointer event listeners (pointerup fires faster than click). Reduce the size of the JavaScript bundle loaded on each page — less JavaScript on the main thread means less competition during interactions. Add passive: true to touch event listeners (allows scroll to begin immediately without waiting for event handler execution). Review tag manager payloads and remove unused tags — GTM often contains legacy tags from past campaigns that execute on every page load and interaction.

    Pair INP optimisation with a full SEO audit to identify other performance issues affecting your rankings — INP improvements rarely solve all CWV problems in isolation.

    Paul Gordon

    About Paul Gordon

    Paul Gordon leads BeFound Search with a deep focus on modern search ecosystems, blending traditional SEO with cutting-edge AI visibility strategies. Over his 18+-year career, he has worked with hundreds of clients to optimise technical architecture, content relevance, and brand identity so that businesses are discoverable and recommended not just on Google organic but across AI search tools like ChatGPT Search, Perplexity and Gemini.