The document.fonts API dynamically loads custom fonts and tracks when fonts are loading or ready to use.
document.fonts