preloading font with rel preload

前端 未结 5 2051
予麋鹿
予麋鹿 2021-02-05 01:46

I am preloading a font using the HTML tag with the rel attribute set to preload as captured in the snippet below;

<         


        
5条回答
  •  梦如初夏
    2021-02-05 02:22

    Don't know if I am re-opening something that has already been solved here, but I just wanted to mention you need to place the rel="preload" links after the source that loads the fonts, e.g. the CSS file.

提交回复
热议问题