Compositing & Frames

Compositor thread

A separate thread that moves and combines already-painted layers without the main thread. It can keep scrolling and running transform/opacity animations even while JS is busy (main-thread animations still stall).

While a heavy script runs, a CSS transform animation keeps moving but a JS-driven `left` animation stalls.

main: blocked
JS running
still scrolling
Watch scrolling outlive blocked JS

One of 40 cards in the JavaScript deck. Browse every card.