Long Tasks & Main-Thread Blocking Playground

The neighbourhood head tallies the score cards on the main thread: in one go or cut up with setTimeout, scheduler.yield, requestAnimationFrame or await…

Why it matters

A page that feels heavy though it loads fast almost always has long tasks: buttons react late, scrolling stutters, typing lags. INP measures that delay on real users, Total Blocking Time in the lab. Cutting the work up and pausing is a fix you feel at once.

The key idea

The same work; all that changes is whether it pauses

Common mistakes

Try it in this playground