Skip to content

Glossary: Web Performance

scheduler.yield()

Also written: yield

A browser function that pauses a long-running task so the browser can handle input and paint, then resumes the task where it left off. It is not available in Safari, so code usually falls back to a `setTimeout`-based promise when it is missing.

Where the book teaches it

Related terms

Long taskINP (Interaction to Next Paint)