requestNewFrame
Commons
stable
Schedule a callback to run in its own animation frame, isolated from other frame tasks. Heavy work is queued so each callback gets a fresh frame, preventing jank when multiple tasks pile up.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- cbrequis() => void
- The callback to schedule. It runs alone in its own animation frame to avoid competing with other frame work.
API
Valeur de retour
La valeur retournée par cet util.
- No return value. The callback is queued and executed asynchronously.
Usage
Exemples
Extraits de code prêts à coller.
Isolate a DOM measurement to its own frame