Great code, playing with it now in WordPress. After setting it up I noticed error like the following in the Chrome dev tools console
Resource interpreted as Font but transferred with MIME type application/x-font-woff2
Looking through the JS I noticed this
var localStoragePrefix = 'x-font-' + fontName;
Isn't the official MIME type for this without the x- part? Changing this made the errors go away.
Great code, playing with it now in WordPress. After setting it up I noticed error like the following in the Chrome dev tools console
Resource interpreted as Font but transferred with MIME type application/x-font-woff2Looking through the JS I noticed this
Isn't the official MIME type for this without the x- part? Changing this made the errors go away.