Leverage scheduler.yield() in @wordpress/interactivity'ss splitTask() when available #64483
Labels
[Packages] Interactivity
/packages/interactivity
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
There is a TODO in this
splitTask()
function:gutenberg/packages/interactivity/src/utils.ts
Lines 46 to 56 in 5dae25b
Chrome just announced the intent to ship this (where previously it was behind an origin trial). Once it is available we can leverage it for better yielding to the main thread as described in the Optimize long tasks article on Web.dev.
The text was updated successfully, but these errors were encountered: