FontFaceSet: status property

Note: This feature is available in Web Workers.

The status read-only property of the 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

Specification
CSS Font Loading Module Level 3
# dom-fontfaceset-status

Browser compatibility

BCD tables only load in the browser