FontFace.loaded

The loaded read-only property of the FontFace interface returns a 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.

Syntax

let promise = FontFace.loaded;

Value

A Promise that resolves with the current FontFace object.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
loaded
45
35-45
Before Chrome 45, the returned promise resolved with void instead of a FontFace object as required by the specification.
79
41
No
Yes
10
45
37-45
Before WebView 45, the returned promise resolved with void instead of a FontFace object as required by the specification.
45
35-45
Before Chrome 45, the returned promise resolved with void instead of a FontFace object as required by the specification.
41
Yes
10
5.0
4.0-5.0
Before Samsung Internet 5.0, the returned promise resolved with void instead of a FontFace object as required by the specification.

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/FontFace/loaded