Prefetch or Preload Typekit Fonts

Has anyone tried to successfully reduce Typekit boot time with preloador prefetch? i.e.

<link rel='preload' href='...' as='font'>

<!-- and/or -->

<link rel='prefetch' href='...'>

Is it practical or possible in the current Typekit boot installation?

+4
source share
2 answers

To date, link rel='preload'not implemented by any browser.

I tried to use link rel='prefetch', and Chrome prefetched this font, however, it ignored the preloaded font and downloaded it again when needed.

+2
source

You can try preloading the Typekit script:

<link rel="preload" href="https://use.typekit.net/[YOUR_KIT_ID].js" as="script">

, , . " " - Typekit script , () javascript . , - .

+2

Source: https://habr.com/ru/post/1610167/


All Articles