BackgroundFetchRegistration: uploadTotal property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Note: This feature is available in Web Workers.
The uploadTotal
read-only property of the BackgroundFetchRegistration
interface returns the total number of bytes to be sent to the server.
Value
A number
.
Examples
Logging this property to the console returns the total number of this upload.
js
console.log(bgFetch.uploadTotal);
Specifications
Specification |
---|
Background Fetch # dom-backgroundfetchregistration-uploadtotal |
Browser compatibility
BCD tables only load in the browser