Window: cancelIdleCallback()-Methode
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Die window.cancelIdleCallback()
-Methode storniert einen Callback, der zuvor mit window.requestIdleCallback()
geplant wurde.
Syntax
js
cancelIdleCallback(handle)
Parameter
handle
-
Die von
window.requestIdleCallback()
zurückgegebene ID, als der Callback festgelegt wurde.
Rückgabewert
Keiner (undefined
).
Beispiele
Sehen Sie sich unser vollständiges Beispiel im Artikel Kooperative Planung der Hintergrundaufgaben-API an.
Spezifikationen
Specification |
---|
requestIdleCallback() # the-cancelidlecallback-method |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
cancelIdleCallback |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.