chunking

Splitting a big job into small pieces that run in separate tasks so the page stays responsive in between.

In more detail

The yield between chunks lets the browser handle input and paint. Process a hundred items, yield, then continue: each chunk stays under the long-task threshold.

Related terms

Taught in

References