Trying to implement rel="preload" for Typekit but it doesn't seem to work
I'm trying to implement the preload technique here:
https://blog.typekit.com/2017/09/05/improving-your-web-font-performance/
But Chrome's browser console is showing this error:
"The resource https://use.typekit.net/xxxxx.css was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally."
This is what is in my <head>:
<link rel="preload" href="https://use.typekit.net/xxxxx.css " as="font" crossorigin>
<link rel="stylesheet" href="https://use.typekit.net/xxxxxx.css ">
(obviously the typekit ID is not shown here)
Any ideas?
I tried the preload with "as='style'" but that didn't work.
