Main-thread yielding (scheduler.yield vs requestIdleCallback) and the Core Web Vitals

No yielding API, requestIdleCallback(), scheduler.yield(), isInputPending(), or scheduler.postTask(): how JavaScript-heavy sites break up long tasks and keep Interaction to Next Paint (INP) fast.

Field data PhoneDesktopAll Scope All sites November 2026 edition · Phone field outcomes

More than two in three sites (68.1%) call no main-thread yielding API. 26.9% use requestIdleCallback() and 4.9% use scheduler.yield(). Across all sites, 93% without a yielding API have a good INP, compared with 91% for scheduler.yield() and 90% for requestIdleCallback(). Sites without a yielding API load a median of 20 scripts, while scheduler.yield() sites load 77 scripts. Even with that workload, scheduler.yield() holds median Total Blocking Time to 33 ms, against 91 ms for requestIdleCallback().

The State of Web Vitals · November 2026 · 219,633 crawled sites · 131,732 with phone field data · 214,845 sites with main-thread yieldingBy Arjen Karel · corewebvitals.io/state-of-cwv
1

INP pass rate

Sites with no yielding API have a good INP most often at 93%, followed by scheduler.yield() at 91% and requestIdleCallback() at 90%. Both isInputPending() and scheduler.postTask() appear on fewer than 50 sites across the dataset. Pages with little JavaScript do not need a yielding helper, so the raw pass rates mostly reflect how much script each page loads.

SitesGood, needs improvement, poor INPMedian
All sites131,73292%99ms
No yielding API (none) 68.1%87,94193%95ms
scheduler.yield() 4.9%6,42991%95ms
requestIdleCallback() 26.9%37,17590%110ms
navigator.scheduling.isInputPending() <0.1%4972%135ms
scheduler.postTask() <0.1%4568%155ms
GoodNeeds improvementPoorSites: with Chrome field data
The State of Web Vitals · November 2026 · 219,633 crawled sites · 131,732 with phone field data · 214,845 sites with main-thread yieldingBy Arjen Karel · corewebvitals.io/state-of-cwv
2

Main-thread yielding usage

31.9% of sites call a main-thread yielding API, while 68.1% run scripts without one. Among the sites that yield, 27% (57,765 sites) use requestIdleCallback() and 5% (10,545 sites) use scheduler.yield().

No yielding API (none) 68.1% requestIdleCallback() 26.9%
No yielding API (none) 68.1% requestIdleCallback() 26.9% scheduler.yield() 4.9% navigator.scheduling.isInputPending() <0.1% scheduler.postTask() <0.1%
The State of Web Vitals · November 2026 · 219,633 crawled sites · 131,732 with phone field data · 214,845 sites with main-thread yieldingBy Arjen Karel · corewebvitals.io/state-of-cwv
3

JavaScript workload by yielding strategy

Yielding APIs appear on pages with heavy JavaScript bundles. Sites with no yielding API load a median of 20 scripts and spend 336 ms in CPU scripting (9 ms Total Blocking Time). Sites using requestIdleCallback() load 44 scripts and spend 1023 ms in scripting, which pushes median Total Blocking Time to 91 ms. Sites using scheduler.yield() load a median of 77 scripts (674 ms scripting). Breaking up those tasks keeps median Total Blocking Time at 33 ms, and 91% have a good INP.

Strategy Median scripts on page Median CPU scripting time Median Total Blocking Time Pass rate
scheduler.yield() 10,545 77 scripts 674 ms 33 ms 91%
requestIdleCallback() 57,765 44 scripts 1,023 ms 91 ms 90%
No yielding API (none) 146,414 20 scripts 336 ms 9 ms 93%
The State of Web Vitals · November 2026 · 219,633 crawled sites · 131,732 with phone field data · 214,845 sites with main-thread yieldingBy Arjen Karel · corewebvitals.io/state-of-cwv
4

INP pass rate by total script count

Six in ten scheduler.yield() sites load 66 or more scripts. On those heavy pages, 93% of scheduler.yield() sites have a good INP with a 37 ms median Total Blocking Time. Sites on requestIdleCallback() drop to 89% (213 ms TBT), and sites without yielding sit at 94% (204 ms TBT).

Scripts on page scheduler.yield() requestIdleCallback() No yielding API
1 to 15 scripts
86% 0 ms TBT 679 sites
87% 25 ms TBT 6,848 sites
91% 0 ms TBT 53,028 sites
16 to 35 scripts
90% 16 ms TBT 1,587 sites
91% 51 ms TBT 15,988 sites
95% 11 ms TBT 48,507 sites
36 to 65 scripts
87% 70 ms TBT 1,174 sites
91% 95 ms TBT 18,311 sites
96% 76 ms TBT 26,641 sites
66 or more scripts
93% 37 ms TBT 7,101 sites
89% 213 ms TBT 16,576 sites
94% 204 ms TBT 8,896 sites
The State of Web Vitals · November 2026 · 219,633 crawled sites · 131,732 with phone field data · 214,845 sites with main-thread yieldingBy Arjen Karel · corewebvitals.io/state-of-cwv
5

Understanding main-thread yielding

Why scheduler.yield() resumes faster than setTimeout or requestIdleCallback()

When a script yields with setTimeout(fn, 0) or requestIdleCallback(), the remaining work goes to the back of the task queue. Any queued timer, third-party tracker, or network callback runs before your function continues. scheduler.yield() pauses the current task so the browser can handle input and paint the next frame, then resumes your code ahead of regular tasks. On script-heavy sites (77 median scripts), that holds median Total Blocking Time to 33 ms, against 91 ms on sites using requestIdleCallback().

Break up long JavaScript tasks (over 50 ms) with await scheduler.yield(), and fall back to setTimeout(resolve, 0) in browsers that do not support it yet. Keep requestIdleCallback() for background work like analytics batching, never inside an interaction handler. Across this dataset, sites with no yielding API score 93% good INP because they only load a median of 20 scripts (9 ms Total Blocking Time). Sites using scheduler.yield() load a median of 77 scripts. On pages with 66 or more scripts, scheduler.yield() reaches 93% good INP and 37 ms TBT, ahead of requestIdleCallback() at 89% good INP (213 ms TBT) and 204 ms TBT without yielding.

The State of Web Vitals · November 2026 · 219,633 crawled sites · 131,732 with phone field data · 214,845 sites with main-thread yieldingBy Arjen Karel · corewebvitals.io/state-of-cwv
Platform & Framework Takeaways

How main-thread yielding plays out per platform

What the field data shows when you isolate a single CMS or framework.

WordPress 68,167 sites
65.2% run scripts with no yielding API

65.2% of WordPress sites call no main-thread yielding API.

Across WordPress, 65.2% of sites run scripts without a yielding API, 32.2% call requestIdleCallback(), and 2.6% call scheduler.yield().

Read the WordPress yielding breakdown →
React & Next.js 10,037 sites
96% vs 85% good INP (scheduler.yield vs requestIdleCallback)

React sites using scheduler.yield() pass INP 11 points more often than sites using requestIdleCallback().

Across React sites, 62.6% call scheduler.yield() (96% good INP, 79ms median) compared with 22.8% calling requestIdleCallback() (85% good INP, 115ms median).

Shopify 8,980 stores
95.5% call requestIdleCallback()

95% of Shopify stores call requestIdleCallback().

Across Shopify storefronts, 95.5% call requestIdleCallback() (111ms median INP, 93% good INP overall) and 4.2% call scheduler.yield().

Wix 6,085 sites
99.9% use scheduler.yield() (79ms median INP)

100% of Wix sites call scheduler.yield().

Across Wix sites, 99.9% call scheduler.yield() (96% good INP, 79ms median).

Related signals Scheduling API use → CSS hints → Interaction invoker types → Blocking frame breakdown → By Arjen Karel · 219,633 crawled sites (131,732 with phone Chrome field data, 214,845 sites with main-thread yielding, November 2026) · How we measured