GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

ProgressEvent: loaded property

XMLHttpRequest API

XMLHttpRequest API

The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
The progress ratio can be calculated by dividing the value of this property by ProgressEvent.total.

For `ProgressEvent`s dispatched by the browser in HTTP messages, the value refers to the number of bytes of a resource that are completed, and is derived from the `Content-Length` header.
For compressed requests of unknown total size, `loaded` might contain the size of the compressed or decompressed data, depending on the browser.
As of 2024, it contains the size of the compressed data in Firefox, and the size of the uncompressed data in Chrome.

In a `ProgressEvent` you create yourself, you can assign any numeric value to `loaded` that represents the amount of work completed relative to the `total` value.

## Value

A number.

## Specifications

## Browser compatibility

## See also

- The ProgressEvent interface it belongs to.

source: MDN Web Docs mirror · page

Cite this

"ProgressEvent: loaded property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/loaded

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·