Archived topic
Generatepress fonts loading (generatepress.woff2)
7 replies · Started by culpable on January 17, 2019
Hi,
I'm currently using a basic system font (i.e. not a google font) such as Arial.
When I test my page in Google page speed insights: https://developers.google.com/speed/pagespeed/insights/
It shows that I am loading:
…fonts/generatepress.woff2
…fonts/generatepress.woff
…fonts/generatepress.ttf
As per https://imgur.com/a/K2DFXGg
How do I prevent these fonts from loading? I'm not sure where they're being used on the page.
If they're needed for /wp-admin/ use then fine – but how do I remove them for standard users?
Thank you very much for your help.
Hi there,
That's a tiny file which includes the built-in GeneratePress icons (dropdown arrows, mobile menu bars etc..).
The file is only 1.2KB so it should have little to no effect on the speed of your site.
Let me know if this helps :)
Thank you for clarifying that Leo.
The analytics showed it took 800ms to load – so I had assumed it was larger than that. Clearly an issue with something on my side.
Thanks again! :)
No problem :)
Hi, I removed fonts/generatepress.woff by adding SVG. It's broke my website navigation, after this again I reinstalled, now Google page speed Insight and Lighthouse Diagnostics is showing Ensure text remains visible during Webfont load. To come out this Where I can add code font-display: swap; or Without breaking My website navigation dropdown How I can safely remove fonts/generatepress.woff and fonts/generatepress.woff2 ?
Hi there,
changing to SVG should not 'break the site'
Try re-enabling the option and clear any plugin / server / browser caches.
Hello david Thanks for quick reply,
Where I can add code font-display: swap; for generate press woff and woff2 font
One user did this:
https://generatepress.com/forums/topic/usage-of-font-display-for-generatepress-woff2/#post-1081094
But we don't support that as it would require custom development outside of our scope.
The font-display: swap; property doesn't make sense with an Icon font. You're better off resolving what the issue is with using SVG as they will remove the font display warning and 1 x network request.