Site logo

Archived topic

Preload key requests - Fonts

9 replies · Started by Clayton on November 30, 2018

Viewing posts 1–10 of 10

Hey guys,

With the new Lighthouse Google Page Speed test I've been messing around with optimization and holy crap...GeneratePress is so damn fast. One suggestion I'm getting from the new test is "Consider using <link rel=preload> to prioritize fetching resources that are currently requested later in page load. ...fonts/generatepress.woff2"

Screenshot: https://gyazo.com/4c0e3935410e3dbd6f2834d127e54e4a

Not a huge deal as far as speed goes but I thought I'd ask if you guys had any suggestions. Also, the site is scoring a 97 on mobile and 100 on desktop...the fastest theme I've tested. Good work guys.

Interesting - I'll look into this.

Thank you! :)

I used the preload tag below in my header and it works!

<link rel="preload" href="/wp-content/themes/generatepress/fonts/generatepress.woff2" as="font" type="font/woff2" crossorigin>

Thanks Barbara! I'll take a look at that.

Barbara - did you see any performance improvements by doing that? I didn't notice anything in our tests.

We're looking at switching to inline SVGs instead of an icon font in the near future, which will definitely have some performance improvements :)

Not really a performance improvement.

We just wanted to increase our Google Pagespeed Insights score. :)

Good to know! We'll be sure to add it in the next version if we don't switch to inline SVGs right away :)

Thank you!

Inline SVGs... :) Nice!

Hi,

I have thrive lead on top and loading their font css, I'm trying to find the font css URL of GP-Premium to add it to the preload key request.

please let me know what's that url?

Can you open a new topic for your question?

This one is a bit old already.

Thanks!

This archived topic is closed to new replies.