BackgroundFetchRegistration: downloaded property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("Background Fetch API")}}{{SeeCompatTable}}{{AvailableInWorkers}}
The **downloaded** read-only property of the {{domxref("BackgroundFetchRegistration")}} interface returns the size in bytes that has been downloaded, initially 0.
If the value of this property changes, the progress event is fired at the associated {{domxref("BackgroundFetchRegistration")}} object.
Value
A {{jsxref("Number")}}.
Examples
Logging this property to the console returns the number of bytes downloaded.
js
console.log(bgFetch.downloaded);Specifications
{{Specifications}}
Browser compatibility
{{Compat}}