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.

The uploadTotal read-only property of the BackgroundFetchRegistration interface returns the total number of bytes to be sent to the server.

Value

Examples

Logging BackgroundFetchRegistration.uploadTotal to the console returns the uploadTotal.

js
console.log(bgFetch.uploadTotal);

Specifications

Specification
Background Fetch
# dom-backgroundfetchregistration-uploadtotal

Browser compatibility

BCD tables only load in the browser