
Interaction to next paint is the new metric from Google, which is used to measure how users interact with a web page after a certain action. It measures how quickly users return to the main page or go to a different page within the site or web app. Measuring and optimizing INP is essential for any site to ensure that it has an engaging and effective user experience. This article will explore everything about INP, from how to measure it and optimize it effectively.
What is Interaction to Next Paint?
Interaction to Next Paint, commonly known as INP, is a revolutionary metric that gauges the responsiveness of a webpage. It does this by observing the latency of all user interactions, such as clicks, taps, and keyboard inputs, making it a comprehensive measure of page responsiveness. Unlike some older metrics, INP doesn’t just focus on the first interaction. Instead, it evaluates the entire user experience across all interactions on a page. This ensures that a web page isn’t just responsive at the beginning but maintains its performance throughout the user’s visit. INP is an integral part of Google’s Core Web Vitals and is set to replace First Input Delay (FID) by March 2024.
To provide a good user experience, websites should aim for an IP score of 200 milliseconds or less. Achieving this target ensures that the page will always be reliably responsive. If a webpage has a faster response time, users will experience a snappy and smooth interaction, while slower response times could lead to a laggy, frustrating experience.
How is Interaction to Next Paint measured?
Interaction to Next Paint, often abbreviated as INP, is a performance metric that assesses a web page’s responsiveness to user interactions. These interactions can be anything from simple click or tap to keyboard interactions. INP has three fundamental components by which it is measured:
Input Delay:
To begin with, let’s discuss “Input Delay.” This term refers to when a user interacts with your website and when the browser starts processing that interaction. For example, if a visitor clicks on a button, the input delay is when the browser begins processing that click. A shorter input delay means a more responsive website and a better user experience.
Processing Time:
Next, we will examine “Processing Time.” This is the period required for a webpage to respond to an input after a user action. It’s measured in milliseconds and is a critical component of the INP metric. Imagine a user clicking on a drop-down menu; the processing time would be between the click and when the menu appears.
Presentation Delay:
Lastly, we have a “Presentation Delay.” This factor measures the time it takes for a page to update following a user interaction. Let’s say a user taps on a login button — the presentation delay is from the tap until the next paint & in this case, likely the display of a login form.
How to optimize Interaction to Next Paint?
Simplify Your Layouts:
Complex layouts often lead to a higher computational load, resulting in slower response times. By simplifying your web design, you can significantly improve the speed at which your webpage responds to user interactions. Consider this: a minimalist approach not only enhances aesthetic appeal but also boosts performance. It’s like decluttering your room – the less clutter there is, the easier it is to navigate.
Minimize Style Calculations:
In the realm of web design, style calculations play a crucial role in determining the appearance of page elements. However, these calculations can slow down your page if they are too complex or numerous. Therefore, reducing the scope and complexity of style calculations can be an effective way to enhance INP.
Reduce Processing Time:
Just as time is of the essence in our daily lives, so it is with webpages. The quicker your page can respond to user input by providing immediate feedback, the better your INP. This is akin to having a conversation – if you take too long to respond, the flow of conversation is interrupted, leading to a less-than-optimal experience.
Leverage Chrome DevTools:
Chrome DevTools is a powerful option that provides insights into your webpage’s performance. It allows you to identify areas that need improvement, thereby enabling you to optimize INP effectively. It’s like having a personal trainer who identifies your weaknesses and helps you work on them to improve your overall performance.
Reduce the Input Delay Component:
The best way to reduce the overall Input Delay component of INP is to break up and reduce the background CPU activities. Reducing the activities on the main thread makes it easier for you to reduce the input delay. Moreover, you should also check out the Total Blocking Time metric to understand processes and their resource utilization patterns. If some third-party codes are slowing down the site, check whether you can configure it to reduce the response time. Other than these, below are more steps to reduce the input delay component.
Prioritize User Interactions:
The first step in reducing input delay is to prioritize user interactions. This means you should optimize the parts of your code that users interact with most frequently. For example, if your website features a search bar, make sure it responds quickly to user inputs.
Optimize Your JavaScript:
JavaScript plays a crucial role in modern web development but can also be a significant source of input delay. If your website relies heavily on JavaScript, consider optimizing your scripts to reduce their impact on performance.
Use Browser Caching:
Browser caching is another powerful tool for reducing input delay. When users visit our website, their browser must download all the necessary resources from your server. This can take time, mainly if your site contains large files or complex scripts. By enabling browser caching, you can instruct the user’s browser to store a copy of these resources locally.
Implement Lazy Loading:
Lazy loading is a technique where you delay loading non-critical resources until they’re needed. For example, if your website includes many images, you might choose only to load the ones currently visible to the user. As the user scrolls down the page, more images are loaded as needed.
Reduce the processing component:
Depending on the types of web app, you can easily optimize the overall CPU activity to achieve a seamless performance. You need to examine your browser where it’s spending most of the time and optimize those aspects.
Moreover, if you have a React app, you can avoid unnecessary or additional renders of the components to cut the delay. When you avoid extra components, it will automatically speed up the website. You can also reduce the overall “layouts” if the layout work is taking excessive CPU resources. Below are some other effective ways to reduce the processing component.
Optimize Your Images:
Large, high-resolution images can significantly drain your website’s performance. Consider using tools to compress and optimize your images without losing quality. This step can dramatically reduce the processing load.
Minimize HTTP Requests:
Each component on your site — scripts, images, CSS — requires a separate HTTP request. Reducing these components can improve your site’s speed. Combine CSS and JavaScript files, use CSS instead of images where possible, and streamline the overall number of elements on your pages.
Use a Content Delivery Network (CDN):
A CDN stores copies of your site at various geographically diverse data centers. Users accessing your site connect to the closest server, reducing the time it takes to load your site. With a CDN, static content such as images, JavaScript, and CSS files are stored on multiple servers, which will help reduce your web pages’ load time.
Reduce Server Response Time:
Your server response time is affected by the traffic you receive, the resources each page uses, the software your server uses, and the hosting solution you use. To improve your server time, look for performance bottlenecks like slow database queries, slow routing, or a lack of adequate memory and fix them.
Minify and Combine Files:
You can reduce the size of your HTML, CSS, and JavaScript files by minification. This process removes unnecessary formatting, whitespace, and code. Since every unnecessary pic of code adds to the size of your page, you must eliminate extra spaces, line breaks, and indentation. This improves load times and reduces the processing burden on your site.
How is Interaction to Next Paint Different from First Input Delay?
Conceptual Differences:
The first point of distinction between INP and FID lies in their very definitions. FID measures when a user first interacts with a web page (like clicking a button or link) to when the browser can respond to that interaction. It essentially quantifies the user’s experience of the site’s responsiveness. On the other hand, INP is a metric that measures the time from user interaction until the next paint on the screen. This metric is particularly relevant when assessing the performance of dynamic content changes, such as animations or visual updates following user interaction.
Use Cases:
The second difference can be found in their respective use cases. FID is an invaluable metric in scenarios where the user’s immediate interaction with the page is critical. For instance, if you have a e-commerce site where users must navigate through product listings, a high FID could quickly lead to a frustrating user experience and potentially lost sales. Conversely, INP is more suited to situations where visual feedback after an interaction is key. Suppose you’re dealing with an application that involves complex animations. In that case, a delay between the user interaction and the subsequent visual update can disrupt the smoothness of the animation, thereby degrading the overall user experience.
Measurement Methodology:
Another aspect that sets these two metrics apart is how they are measured. FID is a real-user metric that captures data from users interacting with your site. This makes FIND a field metric that provides insights into real-world usage.
INP, however, can be both a lab and field metric. It can be measured using controlled tests in a lab environment or captured in the field by real users. This dual nature of INP gives developers greater flexibility and control over performance optimization efforts.
Limitations and Challenges:
It’s important to note that both FID and INP come with their own set of limitations and challenges. FID, for example, only considers the delay for the first input. It doesn’t account for subsequent interactions, which might also impact the user’s perception of your site’s performance. INP, meanwhile, requires careful interpretation. A lower INP may not always imply a better user experience, especially if the visual updates following an interaction are not meaningful or valuable to the user.
While both INP and FID serve to improve the user experience by measuring different aspects of interaction performance, they are fundamentally different in their definitions, use cases, measurement methodology, and limitations.
Is Interaction to Next Paint a Core Web Vitals metric?
Interaction to Next Paint (INP) is indeed a Core Web Vitals metric. However, it’s important to note that it is a pending Core Web Vital metric that will replace First Input Delay (FID) starting in March 2024.
Core Web Vitals is a set of metrics that Google uses to measure real-world usage for loading performance, interactivity, and visual stability of a page. Other Core Web Vitals metrics that impact Google rankings include Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS). Therefore, optimizing INP and other Core Web Vitals metrics is crucial for improving your website’s user experience and search engine ranking. Whether using FID or INP, the main goal should be to measure and optimize user interaction performance for a better experience. As Google is constantly evolving its standards for website performance, it is essential to keep a close eye on these metrics and ensure your site meets the latest criteria.
Why is INP a field metric?
As the INP metric needs user inputs to measure the overall data, thus its available under the field data gathered from actual users or visitors. As a part of the Chrome User Experience Report, Google holistically collects the overall real-user data to deliver better results.
In the lab environment, you can easily script out a user interaction. You also need to remember that every page interaction will deliver different performance and characteristics. These data sets will depend on the overall UI elements and the resources. Moreover, when dealing with a real user, the overall latency will rely on their device settings. To ensure your website is optimized for the best user experience, keeping track of these metrics is essential. Furthermore, you must understand the performance metrics and how to test them. As it’s a field metric, you must measure user interaction performance to ensure the best experience and highest ranking.
How to measure Interaction to Next Paint?
To measure INP, you need to gather metrics from actual users in the field, as it requires real user interaction. For instance, consider a user who enters your page and performs three interactions: clicking a dropdown (next paint occurs 60 ms later), clicking the arrow keys to move to the following slideshow image (next paint appears 350 ms later), and tapping the login button (next paint occurs 100 ms later).
INP aims to assess how responsive a page is by examining interactions with a page and the duration they take. This is in direct contrast to First Input Delay (FID), which considers only the first interaction on the page. INP considers all page interactions, unlike FID, which only measures the input delay metric and doesn’t consider event handlers and how long they process.
While measuring INP, the aim should be to provide a good user experience, ideally striving for an INP of 200 milliseconds or less. To ensure you’re hitting the target for most users, a good threshold to measure is the 75th percentile of page loads, segmented across mobile and desktop devices.

Image source – https://www.debugbear.com/dimg/1de98182ac254af8264dc2f89f88eb6c.png
Monitoring Interaction to Next Paint:
INP measures the time a website takes to respond to all user interactions, providing a more accurate picture of the user’s experience. To monitor INP, you will need field tools, as INP requires real user interaction for measurement. One such tool is Google’s Chrome Extension called Lighthouse, which has a timespan mode. This model allows you to monitor exactly what happens between interaction and the next paint. INP can also be measured by observing the time it takes for a user to progress from a current action, such as clicking, tapping, swiping, etc., to the next paint. For example, if a visitor enters your page and performs three interactions, they could look something like this:
- Clicks drop-down: Next paint occurs 60 ms later.
- Click the arrow keys to move to the next slideshow image: Next paint occurs 350 ms later.
- Taps login button: Next paint occurs 100 ms later.
To diagnose and address issues related to INP, leveraging field data from Real User Monitoring can be beneficial. It helps you understand and optimize your website’s performance. Moreover, various third-party tools are available, like DebugBear, to access the monitoring data.




