How to check if all fonts are loaded with javascript

Posted on January 8, 2022

Within modern browsers it wouldn't be more easier than that:

document.fonts.ready.then(() => {
  // do something
})