files/en-us/glossary/interaction_to_next_paint/index.md
Interaction to Next Paint (INP) measures the responsiveness of a website to user interactions (for example, when they click a link, tap on a button, or use a custom, JavaScript-powered control).
INP was designed by Google as one of the Core Web Vital metrics, replacing {{Glossary("First Input Delay")}} (FID) in May 2024. There are two key differences between FID and INP that make INP a more reliable measure of a page's responsiveness:
INP measures the worst length of time (minus some outliers), in milliseconds, between the user interaction on a web page and the next frame presentation after that interaction is processed. Scrolling and zooming are not included in this metric. INP is calculated using the Event Timing API. Asynchronous operations such as network fetches or file reads usually do not delay INP as painting can occur while such operations are handled.
All eligible interactions throughout the page lifetime are considered. For highly interactive pages of 50 or more interactions, the 98th percentile is used to exclude extreme outliers that are not reflective of overall page responsiveness. The {{domxref("Performance.interactionCount")}} value can be used to query the interaction count to determine when a large number of interactions have happened on a page.
The longer the delay, the worse the user experience. The Long Animation Frames API can help identify causes of high INP.