long task

A task that keeps the main thread busy for more than 50 milliseconds, long enough for users to notice lag.

In more detail

During a long task the browser cannot respond to clicks or paint. Breaking work into smaller chunks and yielding in between is the main fix and improves Interaction to Next Paint.

Related terms

Taught in

References