performance icon indicating copy to clipboard operation
performance copied to clipboard

Experimenting with scheduler.yield

Open asafm7 opened this issue 1 year ago • 3 comments

Feature Description

Is this something worth experimenting with?

https://developer.chrome.com/blog/introducing-scheduler-yield-origin-trial/

asafm7 avatar Sep 02 '23 08:09 asafm7

Yes it is!

westonruter avatar Sep 05 '23 17:09 westonruter

@westonruter @mukeshpanchal27

Maybe this can help with the new INP Core Web Vital?

https://nitropack.io/blog/post/introducing-scheduler-yield

asafm7 avatar Apr 20 '24 09:04 asafm7

@asafm7 Yes, it's something that is marked as a TODO for implementing in the Interactivity API. Currently it is implementing setTimeout() but scheduler.yield() can be used once it is available: https://github.com/WordPress/gutenberg/pull/58227

westonruter avatar Apr 22 '24 17:04 westonruter