3 ms·
> // On the off chance the browser supports the new font loader API, use it. > if (document.fontloader) { > document.fontloader.notifyWhenFontsReady(funct
by Arnavion 11y ago
> // On the off chance the browser supports the new font loader API, use it.
> if (document.fontloader) {
> document.fontloader.notifyWhenFontsReady(function() {
FYI it's `document.fonts.ready()` promise now.