Results 1 - 7 of 7

WindowTimers.setInterval()

Repeatedly calls a function or executes a code snippet, with a fixed time delay between each call. Returns an intervalID.
API DOM Gecko Intervals JavaScript timers MakeBrowserAgnostic Method NeedsMarkupWork setInterval Timers WindowTimers

WindowTimers.setTimeout()

Sets a timer which executes a function or specified piece of code once after the timer expires.
API HTML DOM Intervals JavaScript timers MakeBrowserAgnostic Method NeedsCompatTable NeedsMarkupWork NeedsUpdate Reference setTimeout Timers WindowTimers

cancelIdleCallback

The Window.cancelIdleCallback() enables you to cancel a callback previously scheduled with Window.requestIdleCallback.
API DOM DOM Reference JavaScript timers Method Reference

requestIdleCallback

The window.requestIdleCallback() method queues a function to be called during a browser's idle periods. This enables developers to perform background and low priority work on the main event loop, without impacting latency-critical events such as animation and input response. Functions are generally called in first-in-first-out order unless the function's timeout is reached before the browser calls it.
API DOM DOM Reference JavaScript timers Method Reference

WindowTimers

WindowTimers is a mixin used to provide utility methods which set and clear timers. No objects of this type exist; instead, its methods are available on Window for the standard browsing scope, or on WorkerGlobalScope for workers.
API HTML DOM Interface Intervals Mixin Reference Timers Workers

WindowTimers.clearInterval()

Cancels a timed, repeating action which was previously established by a call to setInterval().
API clearInterval HTML DOM JavaScript timers Method Reference WindowTimers