---
title: BackgroundFetchRegistration.downloadTotal
slug: Web/API/BackgroundFetchRegistration/downloadTotal
tags:
  - API
  - Property
  - Reference
  - downloadTotal
  - BackgroundFetchRegistration
browser-compat: api.BackgroundFetchRegistration.downloadTotal
---
{{DefaultAPISidebar("Background Fetch API")}}

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.

## Syntax

    let downloadTotal = BackgroundFetchRegistration.downloadTotal;

### Value

A {{jsxref("number")}}.

## Examples

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
