Archived topic
Google Font and Mobile Page Speed
6 replies · Started by Dave on March 17, 2021
Hi Guys,
I'm trying to improve my mobile page speed score and I'm getting hit with the "eliminate render blocking resources" message.
The main culprit seems to be the Google fonts. Do you know if there's a way to speed this up or make them load more efficiently?
Thanks very much,
Dave
Hi there,
First thing to check is Font Variants in the Customizer Typography settings:
https://docs.generatepress.com/article/google-font-variants/
Are their any Font Weights you're not using on your site ? If so you can remove them from the list.
Thanks David. There were a number of variants of Oswald (my headings font) that I wasn't using, so I removed them, but I didn't see any Pagespeed change from that alone.
My body font is Georgia, and I really only need the normal and bold font weights, though I see there are a number of font weights in the drop down menu. Not sure if font weight is the same thing as variants, but I don't see any way to remove them like I did the header font variants.
Georgia is a system font so that can be ignored as there are no requests being made for that.
Other options are to preload the font - but you're simply moving the load time upstream, alternative is to load the fonts locally - options are:
1. Manually following this doc:
https://docs.generatepress.com/article/adding-local-fonts/
2. Use the OMGF plugin:
https://wordpress.org/plugins/host-webfonts-local/
I've tried using the OMGF plugin in the past, but saw no change to site speed when I left the settings on Automatic. The Manual settings were a little over my head. Do you have any recommendations for what to set the Manual settings to?
I have found with the most recent update of OMGF the automatic version has worked really well - it sometimes takes a bit of nudge - and make sure you run it without any Caching plugins enabled.
Hi Dave,
I'm actually the developer of OMGF and I'm also a happy user/customer of GeneratePress.
So, if you need any help with properly setting up OMGF, feel free to reach out to me!
I'll be notified of replies via email :-)
Thanks,
Daan