How do you NOT load unused theme fonts
Hi there,
I'm using the yoga theme in a wordpress page.
I'm using only Open Sans font.
But the theme insists on loading every single font available to the theme... even though they're not used by any html on the page.
How do I remove these unused fonts?
(I'm in the middle of page load optimization)
-
Hi,
there is no easy way to do this. It needs some extra work. What you can do is set Open Sans to all the available options in theme settings. If you have a single font on all of these options, it should only upload this font.
0 -
I am using the brizy starter theme and only use 2 Google fonts via Brizy builder. But "cabin" and "lato" are always loaded also from google. Why is that?
0 -
Alex, when I use Open Sans for all styles, ALL the other fonts associated with the yoga theme load up. There must be at least a dozen or more fonts loading up... even though they're not being used.
Is there any way to disable this behavior? It's messing up my web page speed optimization efforts.
1 -
I also have this problem.
It is loading 18 fonts for variations of Montserrat, Lato and some "?brizy-font=", and a https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js script even when I deleted all of the fonts, changed on the builder, and added them manually on the server and with font-face on the child theme.
I also saw when the fonts are uploaded trough the builder, it still loads all the other fonts, it doesn't add display:swap, and the loops on the code are wrong, they generate a file for each font, with all the fonts on them...
All this affects terribly to performance.
Are you planning on giving maintenance to this or not? So I can tell my customer. They are really worried about performance.Thanks!
Taisa1 -
Hi guys,
I have opened a ticket for each and we will inspect the problem on your websites. Please answer me there and sent the login details. Thanks.
1 -
Same problem here - Lato is always included, even if I do not use Lato. The big problem is, in Germany, it is not allowed to use Google Fonts because of GDPR (in Germany it is called DSGVO). That's why this is a very big problem.
Best regards
Sebastian1 -
Hi Sebastian,
I have opened a ticket for you and we will check why Lato is included even if you do not use it.
0 -
But this is something about the builder, all of us have the same problem.
The Lato font is included in
\brizy\public\editor-build\129-wp\editor\preview.css
\brizy\public\editor-build\129-wp\editor\editor.css
Also, the file \brizy\admin\fonts\view\fonts.css that seems like a template or script, creates a file for each font, with all the fonts within.
And also with a font-face for each file type, and weight (when it would be better to make only one font-face).
What I couldn't track is why Montserrat is being called...
2 -
Hi Raquel,
Our developers are already inspecting this. Once I have a clear answer from them I will come up with details.
But I think it will most likely be a general update on this.
0 -
Hi,
all Google Fonts? Do they load even if you don't use them? Please send a link to your site and I will take a look. Also, please make sure you have the latest Brizy version - Free 1.0.122 and PRO 0.0.39.
0 -
Yes, all Google fonts - per Chrome Dev tools. See screenshot.
The latest versions of both plug-ins installed.
Thx
0 -
It seems that all these fonts are loaded by the plugin you use for cache - LiteSpeed Cache. Try disabling the plugin and you will see the difference. It's not Brizy PRO that loads them.
0 -
Oh wow. That is a surprise ... a caching plug-in doing that. My mind boggles. Sorry to have troubled you with this.
Thank you Alex.
1 -
Interesting... I use OpenLiteSpeed, too. And, I'm having the same issue.
1 -
Does it also upload all google fonts? I suppose these plugins have an option to disable this.
0 -
Hi Alex. I've had a bit of time to play around with this, experimenting with various settings in the LiteSpeed plug-in.
On the Tuning tab in the LiteSpeed plug-in, there are 2x settings specific to Google Font optimizations. I've disabled both.
Now my page header loads this directive - does Brizy generate this link tag?:
0 -
There is a simple trick to checking this. If you disable the plugin will this directive be loaded?
0 -
Hi Alex. The site went live recently, so the WP license moved from the dev site to the live site. I will need to test it at an off time. I will revert as soon as I've done this test.
0 -
https://jumpshare.com/v/L1xRwcHF242PYet5tmO0
Why can't I delete Lato ?
0 -
Hi,
this is related to the subject of the post and it will be fixed in one of the next updates.
0 -
Hello,
I've got the same problem. Hope you find a solution to fix this so that only the used fonts wil be loaded … Now the initial load time is way to high. My website: www.webdesignbart.be. If I test the speed on www.webpagetest.org I find many things slowing down my website. Should I open a ticket so you can inspect this?
0 -
Hi,
You don't have to open a ticket. This needs to be fixed, globally, not locally on your website. We are waiting for a fix from the developers.
0 -
any progress?
0 -
Hi,
yes. Our developers have done some work and now if you delete all Google Fonts from Brizy, they will not load. The only font that will be loaded is Lato. This is the basic Brizy font and unfortunately cannot be deleted: https://jumpshare.com/v/DIuHdH25uunOlPI84GDS It has been deleted from CSS files so that does not contradict the GDPR.
1 -
I'm a cloud user, is this affecting me and do I still need to delete the fonts?
0 -
Hi,
yes, if you don't want them to load, you have to delete them. You can leave only the ones you use or the ones added custom.
0 -
1. Can I see a list of fonts I've used on my website so I don't accidentally delete one I used?
2. For the fonts I keep, is it still going to unnecessarily load every language the font is available in?
0 -
1. You can see a part of them in the Styling tab: https://jmp.sh/yIai0uB If you added some specific fonts to the items on the page, I'm afraid you can't find them in a list somewhere.
2. I'm not sure I understand what you mean. Can you please expand the question?
0 -
I was under the impression that every available language was being loaded for each font, even if the only language used was english and this was also slowing down load times. Is this incorrect?
0
Please sign in to leave a comment.
Comments
31 comments