FontFaceSet: loadingdone event
The loadingdone
event fires when the document has loaded all events.
Syntax
Use the event name in methods like addEventListener()
, or set an event handler property.
addEventListener('loadingdone', event => { });
onloadingdone = event => { };
Example
In the following example, when the font Ephesis
has finished loading, "Font loading complete" is printed to the console.
document.fonts.onloadingdone = () => {
console.log('Font loading complete');
}
(async () => {
await document.fonts.load("16px Ephesis");
})();
Specifications
No specification found
No specification data found for api.FontFaceSet.loadingdone_event
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
Browser compatibility
No compatibility data found for api.FontFaceSet.loadingdone_event
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.