What Is Interaction to Next Paint (INP) and Why Does It Matter?

Interaction to Next Paint (INP) is a Core Web Vitals metric that assesses a page's responsiveness. It tracks the latency of every user action throughout their entire visit, such as clicks, taps, or keyboard input. In essence, INP works by evaluating overall responsiveness by considering all user interactions. The system then determines a final INP value that reflects the slowest interaction during a page visit. 

How INP Affects User Experience and Core Web Vitals

By demonstrating how quickly a website responds to user actions, the INP score correlates with how user-friendly a site is. As it is part of the Core Web Vitals, optimizing it helps refine the quality of the user's interaction with the site.

Knowing how to improve INP is essential for several reasons, including the following:

  • Rapid Response. When an interface reacts to user actions without noticeable delays, it ensures faster menu opening, form submission, and a pleasant experience with other interactive elements on the website.

  • Core Web Vitals. A good INP score helps meet Google’s Core Web Vitals targets. Along with LCP and CLS, it is used to evaluate user experience, so it should be taken into account when performing comprehensive website performance optimization.

  • User Experience. Because elements function more smoothly and the site responds quickly to visitor actions, users can complete tasks more easily, without unnecessary waiting or frustration, which increases the time they spend on the site.

What’s the Difference Between INP and FID?

Both Interaction to Next Paint (INP) and First Input Delay (FID) are metrics that evaluate responsiveness. However, INP has replaced FID, as the latter only accounted for the delay during a user's first interaction with a page, whereas INP measures the latency of user interactions from the moment the browser receives an interaction until the next frame is presented. Unlike FID, which measured only the input delay of the first interaction, INP accounts for input delay, event processing, and presentation delay across interactions throughout the page visit.

Thus, INP and its predecessor, FID, measured responsiveness differently:

  • FID was used to assess responsiveness during the loading phase, specifically upon the first interaction.

  • INP measures overall responsiveness, regardless of when an interaction with the page occurs.

How Is INP Calculated?

One of the key aspects of the INP metric used to evaluate a website's responsiveness and how fast it feels to the user is interaction latency, which is the time interval between a user's action and the system's response displayed on the screen. Interaction latency consists of three main components:

  • Input Delay. This factor encompasses both physical or technical delays associated with an input device (such as a keyboard, mouse, or touchscreen) and delays that occur while the system itself processes the input. Input delay is the time between the start of a user interaction and the beginning of its event callbacks. It can increase when the browser’s main thread is busy with other tasks.

  • Processing Time. Once the browser receives an input from a user, it must run the event callbacks (event handlers) associated with that interaction to determine what action or response is required. This is known as processing time: the period the browser needs to run these callbacks, perform the necessary calculations and operations, and prepare a response.

  • Presentation Delay. After a system has generated a result, there is typically an additional delay before it is presented to the user. This is the time required for the system to update the display, render graphics or user interface elements, and output the information to the screen.

INP Thresholds: What Is a Good INP Score?

Before considering how to improve your INP score, it is essential to understand what constitutes a "good" score.

  • An INP score of 200 milliseconds or less indicates that your website is highly responsive and reacts quickly to user interactions.

  • A score between 200 and 500 milliseconds suggests that your site needs improvement.

  • A score exceeding 500 milliseconds indicates poor responsiveness.

It is also worth noting that Google evaluates metrics based on the 75th percentile of page loads. Consequently, for a page to pass the assessment, 75% of your visitors must experience a good INP score.

Does INP Affect SEO?

Interaction to Next Paint (INP) is part of the Core Web Vitals, so Google considers this metric as well to evaluate user experience and determine your website's search rankings.

Although INP is not an independent factor that directly dictates a site’s position in search results, it helps the engine assess how responsive pages are to user interactions. A low INP score indicates that a site reacts quickly to clicks, taps, and other actions, thereby providing a better user experience.

So, optimizing INP can support your SEO strategy, especially when combined with high-quality content, page relevance, and a comprehensive approach to digital marketing.

Which User Interactions Does INP Measure?

The INP metric does not cover absolutely all user interactions on a website. Rather, it focuses on a few key ones, namely:

  • Mouse clicks

  • Touch screen taps

  • Keyboard input

At the same time, actions such as hovering or scrolling are not taken into account when determining the score.

How to Check Your INP Score

There are several ways you can measure the INP of your website yourself.

Google PageSpeed Insights

Google PageSpeed Insights

Google PageSpeed ​​Insights uses CrUX data to determine the INP metric. CrUX, or the Chrome User Experience Report, is a public database from Google that contains real-world user experience data. Instead of simulating page loads, CrUX provides data from actual users, accounting for variables such as their internet speed, device capabilities, and geographic location, thereby reflecting how a website performs for its visitors.

Since the INP metric is based on the 75th percentile of user experiences, an INP value of, for example, 280 milliseconds means that 75% of measured page visits have an INP of 280 milliseconds or less, while the remaining 25% have higher values. 

Google Search Console

Google Search Console

Another method is to use Google Search Console, which serves as a helpful dashboard for receiving INP reports. If your website has INP problems, you will see a notification, such as "INP issue: longer than 200ms (mobile)" within the report. By clicking on the "Poor" or "Needs Improvement" sections, you can check how many URLs are affected and determine which groups require optimization.

Chrome DevTools

Chrome DevTools

Using the Performance panel in Chrome DevTools, you can examine the components of the INP metric and the timing characteristics of an interaction. Hovering over a specific block reveals detailed information about its duration. If an interaction takes longer than 200 ms, meaning it exceeds the good INP threshold, Chrome DevTools flags these interactions with an INP warning, including a red triangle in the Interactions track.

The "Input Delay" and "Presentation Delay" intervals are displayed on either side of the interaction block. Analyzing this INP data helps identify the root causes of poor INP and discover opportunities for optimization.

Chrome DevTools also allows you to pinpoint the specific processes that are blocking the main thread and increasing response times.

INP Debugger

INP Debugger

The INP Debugger automates selected interactions on a page and reports their response times. The value of the Debugger lies in its ability to quickly and easily pinpoint which specific elements cause delays during interaction. However, the tool does not provide information on how actual users interact with these elements, so results should be used alongside field data.

The results from an INP Debugger check include data such as your site’s INP score (based on the CrUX report), interaction delays for specific page elements, and screenshots of those elements.

How to Identify What Is Causing Poor INP

Before moving on to how to improve Interaction to Next Paint (INP), it is worth first understanding exactly what is negatively affecting your score:

  • You can start with the Web Vitals Chrome extension to measure INP during local testing and inspect available field data where supported. For aggregated real-user metrics, use PageSpeed Insights or Google Search Console. Additionally, with Google’s web-vitals JavaScript library, you can obtain more detailed information, especially when using the attribution build, that provides information such as the INP value, the element selector, the loading state (whether the interaction occurred during or after page load), the time the interaction began, and the event type (a click, key press, or touch).

  • The next step is to reproduce the issue in Chrome DevTools. By opening the Performance panel, you can record INP metrics while interacting with the page. Locate the specific interaction and expand it to analyze how time is distributed across its three phases. For a more in-depth investigation, save the full trace; this will help identify the script that caused the delay. If a lab testing tool only provides TBT (Total Blocking Time), you can use it for a preliminary assessment. TBT serves as an indirect indicator of potential INP issues, but it is not a substitute for the INP metric itself.

  • Perform additional code analysis if necessary. The Long Animation Frames API makes it possible to identify which tasks and operations led to the creation of a slow frame. However, the data obtained should be viewed as diagnostic information regarding the causes of a delay, rather than as a comprehensive profile of JavaScript execution.

  • Keep in mind that field data is not updated instantaneously. The CrUX report covers the last 28 days, so optimization results verified today in DevTools may not appear in Google Search Console for several weeks. This is due to the way data is collected and updated, and it does not mean that the changes you have made have been ineffective.

Once you have identified the problematic interaction and determined which phase is increasing response time, you can proceed with targeted optimization. 

How to Improve Interaction to Next Paint

Reduce Input Delay

One way to address the issue of high input delay is to reduce processor activity, thereby freeing up computational resources for processing interactions.

Break up long CPU tasks. Input delay can occur when a user interacts with a page while the processor is busy with a resource-intensive task. By breaking such a task into smaller chunks, the browser can respond to user actions more quickly. 

The scheduler.yield API can help split long tasks by yielding control to the browser. Because support varies across browsers, feature-detect the API and provide a suitable fallback where necessary. It allows code to voluntarily yield control back to the scheduler. While the browser cannot unilaterally interrupt a task already running on the main thread, JavaScript code can choose to relinquish control. This means that if a user performs an action during a process like "doSomeSlowWork", the browser can handle that action first before resuming the remaining work (e.g., "doMoreSlowWork"), without blocking the main thread entirely.

Minimize processing during the initial page load. The CPU is typically under the greatest strain during page loading, as scripts are being executed while content is simultaneously being rendered. Consequently, any user interaction at this stage may be met with a noticeable delay.

You can run a speed test and check the Total Blocking Time (TBT) metric to determine whether background processes are interfering with user actions. Additionally, by examining the CPU timeline, you can identify which scripts are running during the load process and assess how resource-intensive they are.

Reduce the impact of third-party scripts. If third-party code creates background tasks, check whether you can limit its workload through configuration settings or by loading it only when necessary.

Another option is to use the Partytown library, which offloads third-party scripts to a Web Worker, reducing their direct workload on the main thread. However, compatibility limitations and communication with the main thread mean that performance improvements are not guaranteed.

Reduce JavaScript Processing Time

Optimizing processing time is often an effective way to improve INP, as the relevant code is directly linked to a specific interaction. However, global event handlers added by analytics tools can also increase processing time.

Optimize the code of your frontend components. Many websites are built as SPAs (Single-Page Applications) using frameworks like React, Vue, and others. Such code often ends up being complex and slow, which causes a delay in preparing the interface for rendering.

Show a spinner before resource-intensive processing. Since INP  measures the time until the next frame is rendered, regardless of whether all the new content has finished rendering, you can immediately show a spinner or a skeleton loader if an interaction is slow. A spinner or skeleton loader can provide immediate visual feedback for interactions that require additional processing. To ensure it appears promptly, allow the browser to render the feedback before starting expensive work, for example by splitting the task or deferring non-critical processing. 

Avoid forced reflows. A forced reflow occurs when JavaScript modifies an element's styles or changes the DOM and then reads layout-dependent properties, forcing the browser to recalculate layout before continuing. In such cases, the browser is compelled to recalculate styles and layout before it can proceed with executing the rest of the code. This becomes particularly problematic when it happens repeatedly, known as "layout thrashing." This can occur, for instance, when iterating through elements in a slider or a tabbed menu.

Optimize slow JavaScript. Many resource-intensive tasks are typically linked to browser API calls, but sometimes your own code also requires optimization. Common issues may include:

  • redundant iterations or nested loops when processing lists
  • unnecessary dependencies or library functions that introduce execution overhead

  • an excessive number of event handlers

Offload heavy tasks to Web Workers. CPU-intensive operations cause delays only when they are executed on the main thread. You can move such resource-heavy tasks to a separate thread using Web Workers. In this setup, the main thread and the worker communicate via messages. The worker performs calculations in the background, while the main thread receives the final result and displays it to the user.

Reduce Presentation Delay

The complexity of a page and the volume of content being updated on it after an interaction can directly affect presentation delay. If rendering the updated content is slow, one of the best solutions is to first display only the essential elements currently on screen, the portion visible without scrolling, and defer the rest, in order to generate the next frame more quickly.

How to Monitor INP Over Time?

Regularly analyzing data on how real users interact with your website is essential for monitoring INP over time. It helps you identify declines in responsiveness after UI updates or the addition of new scripts.

Effective monitoring options include Google Search Console, PageSpeed Insights, and Real User Monitoring tools, which provide insights into the actual user experience.

Overall, you can improve INP monitoring by:

  • Tracking INP across different periods to identify performance degradation early

  • Analyzing real user data through Google Search Console and RUM tools

  • Monitoring changes after releases, code updates, and the addition of new scripts or features

  • Identifying problematic pages and interactions by analyzing individual URLs and user actions

  • Aiming to maintain INP at 200 milliseconds or less at the 75th percentile of field data, evaluated separately for mobile and desktop users