@font-faces, then notify you once they have finished loading via a
sessionStorage is like
localStorage except that, as it’s name suggests, it expires at the end of the session. We’ll be using it to keep track of whether or not the fonts have been loaded.
Let’s start by adding the necessary
@font-face syntax to our CSS. This site uses Domine, which I self-host. FontFaceObserver is compatible with any webfont service though.