Back to Content

ProgressEvent: lengthComputable property

files/en-us/web/api/progressevent/lengthcomputable/index.md

latest498 B
Original Source

{{APIRef("XMLHttpRequest API")}}{{AvailableInWorkers}}

The ProgressEvent.lengthComputable read-only property is a boolean flag indicating if the resource concerned by the {{domxref("ProgressEvent")}} has a length that can be calculated. If not, the {{domxref("ProgressEvent.total")}} property has no significant value.

Value

A boolean.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • The {{domxref("ProgressEvent")}} interface it belongs to.