Back to Content

FontFaceSet: status property

files/en-us/web/api/fontfaceset/status/index.md

latest459 B
Original Source

{{APIRef("CSS Font Loading API")}}{{AvailableInWorkers}}

The status read-only property of the {{domxref("FontFaceSet")}} interface returns the loading state of the fonts in the set.

Value

One of:

  • "loading"
  • "loaded"

Examples

In the following example the status of the FontFaceSet is printed to the console.

js
console.log(document.fonts.status);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}