BackgroundFetchRegistration: downloadTotal property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("Background Fetch API")}}{{SeeCompatTable}}{{AvailableInWorkers}}
The **downloadTotal** read-only property of the {{domxref("BackgroundFetchRegistration")}} interface returns the total size in bytes of this download. This is set when the background fetch was registered, or 0 if not set.
Value
A {{jsxref("Number")}}.
Examples
Logging this property to the console returns the total size in bytes of this download.
js
console.log(bgFetch.downloadTotal);Specifications
{{Specifications}}
Browser compatibility
{{Compat}}