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

Gsk8

Active member
Licensed customer
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?
 
Thanks @mcatze I have that! The problem is that it's not showing up as "preloaded" in PageSpeed. See attached image.
 

Attachments

  • pagespeed.webp
    pagespeed.webp
    11.9 KB · Views: 22
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?
 
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.
 
PSI shows mobile still having issues, but desktop prompt went away (after I put in the link as shown in my post above).
 
Back
Top Bottom