Tag

scheduler.yield

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Oct 18, 2024 · Frontend Development

Improving Long-Running JavaScript Tasks with scheduler.yield in Chrome 129

Chrome 129’s new scheduler.yield() lets developers pause long‑running JavaScript loops without the 4 ms minimum delay or queue‑end placement of setTimeout(), cutting execution time from ~17 s to ~5.6 s while keeping the page responsive and preserving task priority.

ChromeFront-endJavaScript
0 likes · 10 min read
Improving Long-Running JavaScript Tasks with scheduler.yield in Chrome 129