Skip to content
Performance & Accessibility

Interaction to Next Paint: The Decisions That Matter

A measure of responsiveness: how long a page takes to render a visual response after a user interaction.

Marcus Adeyemi Technical Director 2 min read 21 views
Interaction to Next Paint: The Decisions That Matter

What is at stake

It replaced First Input Delay because it measures all interactions through the visit rather than only the first, which is closer to how a page actually feels.

The playbook

  1. Break long tasks into smaller ones that yield to the main thread
  2. Defer non-essential work until after the interaction has been acknowledged
  3. Give immediate visual feedback even when processing continues
  4. Audit third-party scripts, which frequently cause long tasks
  5. Measure in the field rather than on a fast development machine

Where it goes wrong

Avoid:

  • Heavy synchronous work in event handlers
  • Large hydration passes blocking interaction
  • Third-party scripts running long tasks during interaction
  • Assuming a fast machine represents real users
What to do and what to avoid with interaction to next paint, side by side
Good practice against the usual mistakes, from the sources listed below.

The numbers behind it

Published figures for Interaction to Next Paint
MeasureFigure
Good200 milliseconds or less
Needs improvementbetween 200 and 500 milliseconds
Poorover 500 milliseconds
Scopeall qualifying interactions during a visit, reported as a high percentile
Main causelong JavaScript tasks blocking the main thread
Componentsinput delay, processing time and presentation delay

Getting outside help

When to hand it over: Bring in help when INP fails and profiling does not identify a clear cause, when a framework's hydration is the bottleneck, or when third-party code is responsible.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Performance & Accessibility work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

Marcus Adeyemi

Builds and maintains the web work. Writes about front-end architecture, performance, accessibility and the unglamorous parts of keeping a site alive.

Keep reading

More in Performance & Accessibility