CDN & Performance

What is Interaction to Next Paint?

Also known as: INP

Definition

Interaction to Next Paint (INP) is a web performance metric that measures the worst-case latency from a user interaction to the next frame painted on screen, replacing First Input Delay as a Core Web Vital.

Interaction to Next Paint (INP) is a Google-developed metric that quantifies a web page's responsiveness to user interactions. It measures the elapsed time from when a user initiates an interaction (such as a click, tap, or keypress) to the moment the browser's next frame is painted after processing the interaction’s event handlers. INP captures the full pipeline: input delay, event processing, and rendering. Unlike its predecessor First Input Delay (FID), which only considered the first interaction’s input delay, INP evaluates all interactions throughout the page’s lifecycle and reports the worst-case (typically the longest) latency.

INP is part of the Core Web Vitals, a set of user experience metrics used by Google for search ranking and site quality evaluation. As of March 2024, INP replaced FID as one of the three official Core Web Vitals. The metric is measured in milliseconds, with Google recommending a target of less than 200 milliseconds for a good user experience. Values between 200 and 500 milliseconds need improvement, and values over 500 milliseconds are considered poor. INP is collected through the Chrome User Experience Report (CrUX) from real users and can also be tested in lab tools like Lighthouse (simulated) and WebPageTest.

INP sits above lower-level performance APIs like the Event Timing API and the PerformanceObserver interface in the browser. Web developers can optimize INP by minimizing long tasks, breaking up heavy JavaScript execution, using requestAnimationFrame for visual updates, deferring non-critical work, and avoiding layout thrashing. Because INP measures every interaction, it provides a more accurate picture of responsiveness than FID, catching issues like unoptimized button clicks or delayed keyboard input that might otherwise go unnoticed.

Key facts

  • Measures worst-case latency from interaction to next paint across all user interactions.
  • Replaced First Input Delay (FID) as a Core Web Vital in March 2024.
  • Good INP target is under 200 milliseconds; poor is over 500 milliseconds.
  • Collected from real users via the Chrome User Experience Report (CrUX).
  • Optimization involves reducing long tasks and inefficient event handlers.

How it works in practice

On a news website, a user taps a 'Load More' button. The button’s JavaScript handler fetches data and inserts new articles. If the main thread is busy with other scripts, the browser delays painting the new content, resulting in an INP of 450 ms (needs improvement). After optimizing the handler to use requestAnimationFrame and deferring non-critical work, the INP drops to 180 ms, providing a responsive feel.

Related terms

Core Web Vitals First Input Delay Largest Contentful Paint Cumulative Layout Shift Long Tasks API Web Vitals Responsiveness

References

More in CDN & Performance

Apdex Score

The Apdex Score is a standardised metric that measures user satisfaction with application performance by comparing response times against predefined target and tolerable thresholds.

Bandwidth Throttling

Bandwidth throttling is the intentional reduction of data transfer speed by a network operator or service provider to manage congestion, enforce usage policies, or control costs.

Brotli Compression

Brotli is a lossless compression algorithm developed by Google, offering higher text compression ratios than gzip, used by CDNs to reduce page load times.

Cache Hit

A cache hit occurs when a requested resource is found in a CDN edge cache and served directly to the client, bypassing the origin server entirely.

Cache Invalidation

Cache invalidation is the explicit removal of stored web objects from a cache so that new requests must revalidate or refetch them from the origin server.

Cache Miss

A cache miss occurs when a requested resource is not found in a CDN or proxy cache, forcing the request to be forwarded to the origin server and then storing the response for future requests.

CDN

A CDN (Content Delivery Network) is a geographically distributed network of proxy servers and data centers that deliver web content to users from the nearest edge location, reducing latency and offloading origin servers.

Core Web Vitals

Core Web Vitals are a set of three real-world user experience metrics (LCP, INP, CLS) defined by Google to quantify loading, interactivity, and visual stability on web pages.

Cumulative Layout Shift

Cumulative Layout Shift (CLS) is a Core Web Vital metric that measures the sum of all unexpected layout shift scores during a page's lifespan, quantifying visual stability.

Edge Computing

Edge computing is a distributed computing model that processes data and runs application logic at Points of Presence (PoPs) close to end users, minimizing round-trip latency and bandwidth usage compared to centralized cloud regions.

Who Is Online

In total there are 65 users online: 0 registered, 58 guests and 7 bots.

Most users ever online was 5,555 on 17 Jul 2026, 3:23 am.

Bots: AhrefsBot Applebot Baiduspider Bingbot Other Bot PetalBot SemrushBot

Users active in the past 15 minutes. Total registered members: 369