web api instance method
Window: cancelIdleCallback() method
The window.cancelIdleCallback() method cancels a callback
previously scheduled with requestIdleCallback().
Syntax
cancelIdleCallback(handle)
Parameters
handle- : The ID value returned by
requestIdleCallback()when the callback was established.
- : The ID value returned by
Return value
None (undefined).
Examples
See our complete example in the article Cooperative Scheduling of Background Tasks API.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.