XF 2.2 Where and how to use preload link for FA?

Gsk8

Active member
Hi all!

Trying to improve PageSpeed and am not sure where or how to incorporate the preload link
Code:
<link rel="preload" href="forum/styles/fonts/fa/fa-regular-400.woff2?_v=5.15.1" as="style">
?

I tried the PAGE_CONTAINER, and used different versions of the script, but to no avail?
 

Gsk8

Active member
I placed the below in the PAGE_CONTAINER <head>
<link rel="preload" href="styles/fonts/fa/fa-regular-400.woff2?_v=5.15.1" as="font" type="font/woff2" crossorigin="anonymous" />

The notice went away, but seems redundant? Not sure that's what I should do?
 

Kirby

Well-known member
XenForo does preload the font files by default, if PSI does complain that they are not being preload smth. might be broken on your installation.
 
Top