Want to subscribe to topics you're interested in?
Become a Member

Is it good or bad to Link Preload font/fontawesome files?

Discussion in 'Web Development & Web Performance' started by rdan, Feb 4, 2020.

  1. rdan

    rdan Well-Known Member

    5,451
    1,412
    113
    May 25, 2014
    Ratings:
    +2,206
    Local Time:
    2:56 AM
    Mainline
    10.2
    XenForo 2.1 by default preload this files:
    Code:
    <link rel="preload" href="/styles/fonts/fa/fa-regular-400.woff2?_v=5.12.0" as="font" type="font/woff2" crossorigin="anonymous" />
    <link rel="preload" href="/styles/fonts/fa/fa-solid-900.woff2?_v=5.12.0" as="font" type="font/woff2" crossorigin="anonymous" />
    <link rel="preload" href="/styles/fonts/fa/fa-brands-400.woff2?_v=5.12.0" as="font" type="font/woff2" crossorigin="anonymous" />
    
    I removed it on my own site and Start to Render decreased which I think is good.
    Eva however preload it on this Forum, that's why I'm confuse what's the best setup.

     
  2. rdan

    rdan Well-Known Member

    5,451
    1,412
    113
    May 25, 2014
    Ratings:
    +2,206
    Local Time:
    2:56 AM
    Mainline
    10.2
  3. eva2000

    eva2000 Administrator Staff Member

    55,805
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    4:56 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Dependent on style/theme - so varies from site to site :)