Preload key requests – Fonts

#1

Hello,
Google lighthouse is suggesting I preload one of my fonts which came with the theme
I used the preload tag below except brackets in my header but it didn’t work

(<link rel=”preload” href=”/wp-content/themes/oceanwp/assets/fonts/simple-line-icons/Simple-Line-Icons.woff2?v=2.4.0″ as=”font” type=”font/woff2?v=2.4.0″ crossorigin>)

#2

Try this way

 <link rel="preload" href="https://example.com/fonts/cicle_fina-webfont.woff2" as="font" type="font/woff2" crossorigin>
1 Like
#3

thanks i fixed it!