BackgroundFetchRegistration: downloadTotal-Eigenschaft
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimentell: Dies ist eine experimentelle Technologie
Überprüfen Sie die Browser-Kompatibilitätstabelle sorgfältig vor der Verwendung auf produktiven Webseiten.
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die schreibgeschützte Eigenschaft downloadTotal
des BackgroundFetchRegistration
-Interfaces gibt die Gesamtgröße dieses Downloads in Bytes zurück. Diese wird festgelegt, wenn der Hintergrundabruf registriert wurde, oder 0
, wenn sie nicht festgelegt wurde.
Wert
Eine number
.
Beispiele
Das Protokollieren dieser Eigenschaft in der Konsole gibt die Gesamtgröße dieses Downloads in Bytes zurück.
console.log(bgFetch.downloadTotal);
Spezifikationen
Specification |
---|
Background Fetch # dom-backgroundfetchregistration-downloadtotal |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
downloadTotal |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.