Run cb exactly once at the next frame boundary — or via a timer when the tab is hidden, or synchronously when requestAnimationFrame is missing.
cb
requestAnimationFrame
Run
cbexactly once at the next frame boundary — or via a timer when the tab is hidden, or synchronously whenrequestAnimationFrameis missing.