Task chunking demo
Experiment with the following buttons while a performance profiler is running to see the results.
Run blocking tasks without chunking
Run chunked blocking tasks with
Promise
resolving with
setTimeout
Toggle box
Run chunked blocked tasks with
isInputPending
Yield to tasks with
scheduler.yield
Inject script to introduce third-party blocking tasks via
setInterval
Inject script that injects its own event handlers
Inject cross-origin iframe
Queue up long
requestAnimationFrame
callback
Reload the page
I done got toggled.
Make DOM bigger