How To Improve INP: Yield Patterns

August 14, 2025

Browser performance profiling view highlighting a 9.35 ms “Recalculate Style” task during a scroll event.

In the following, we’ll go over different patterns we can use to yield to the main thread to improve the Interaction-to-Next-Paint (INP). Knowing how to improve INP is more important than ever, as it’s a metric reflecting User Experience (UX) and has recently been added to the Core Web Vitals (CWVs) – which are used by Google’s search ranking.

We’ll take a look at which part of INP we’re targetting, how browser scheduling and yielding works, pros and cons of each pattern and where we can make use of those.

Source: How To Improve INP: Yield Patterns | Jacob ‘Kurt’ Groß

Interaction to Next Paint (IMP) is a newer Core Web Vital that is more challenging to get right for many applications.

Here Jakob Gross looks at patterns for improving INP. This is something Nishu Goel spoke about a couple of years ago at one of our conferences, and you can watch that here.