Window: cancelIdleCallback() method
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Thewindow.cancelIdleCallback()
method cancels a callbackpreviously scheduled withwindow.requestIdleCallback()
.
Syntax
js
cancelIdleCallback(handle)
Parameters
handle
The ID value returned by
window.requestIdleCallback()
when thecallback was established.
Return value
None (undefined
).
Examples
See ourcomplete examplein the articleCooperative Scheduling of Background Tasks API.
Specifications
Specification |
---|
requestIdleCallback() # the-cancelidlecallback-method |