Back to Content

FontFace: loaded property

files/en-us/web/api/fontface/loaded/index.md

latest478 B
Original Source

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

The loaded read-only property of the {{domxref("FontFace")}} interface returns a {{jsxref('Promise')}} that resolves with the current FontFace object when the font specified in the object's constructor is done loading or rejects with a SyntaxError.

Value

A {{jsxref('Promise')}} that resolves with the current FontFace object.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}