Site logo

Archived topic

Huge amounts of Font code

34 replies · Started by Mark on December 5, 2022

Viewing posts 16–30 of 35

Yes, an exact copy. I'll follow up with hosting

Yes, that's a good idea. I can see you have Server caching and CDN as well: https://share.getcloudapp.com/DOuk809z

It would be good to ask your hosting provider to clear it.

Hope it goes well.

It seems to be Cloudflare APO that's doing it.

Now I need to work out if this is normal and how I can stop without getting rid of APO

I have done, but I'm only getting confirmation that APO is causing the issue, not how to fix it and how damaging it is :/

I see. Unfortunately, this would be out of our scope of expertise.

Perhaps you can test your site in https://pagespeed.web.dev/ with APO turned on and off to compare at least and check if it has major effects performance-wise?

I may have to disable APO, yes

I see. If you'll have any further inquiries, feel free to reach out anytime. Have a nice day!

I got this back from a Cloudflare community member and they seem to think it's normal

"It sounds like you’re using APO on Wordpress, and it’s caching third party fonts for you."

So my next question is, why is CF caching all these fonts that I assume I do not use? Is there something I can disable in GP that does this?

Someone told me that new installations now mean you "can now select the fonts you want loaded".

Do I have any options here?

So my next question is, why is CF caching all these fonts that I assume I do not use? Is there something I can disable in GP that does this?

GP doesn't load random fonts, but other plugins might do.

You'll have to figure out which fonts and requested by which plugin.

Sorry, I find the fonts thing very confusing. You have a guide https://docs.generatepress.com/article/adding-local-fonts/?fbclid=IwAR1VhMyeGZdL5XY0i7eixvDC2K9LXYAyLsDUJOXzxAtN5lhrrwqCaN35L4M and it mentions something about add your own fonts:

font

I don't believe other plugins are loading all these extra fonts when CF APO is enabled

To be clear, the font-face code that is being loaded are the font-type that are being used on my site. It's just that every single variation of the particular font seems to show up in the source code when CF APO enabled.

When you uploaded the Font files on your site, do these files include multiple variations? If so, can you try reuploading the Fonts with just the variations you need?

As mentioned, GP won't load any other font that isn't added. If you don't load Google fonts, it won't load. If it's not added as a local font, it won't load as well through GP.

There's no code in GP that will make your site load random fonts out of the blue which is why Ying says that if you didn't add it through GP, it could be added by a plugin.

I don't know if I did upload font files to my site? I just pick them from Customize on GP

I see. If you didn't add a local font and added one only through the Customizer, then you shouldn't need a @font-face rule.

So, if you're adding a Google Font for instance, you can set the Variants to load in the Variants input box. Example: https://share.getcloudapp.com/nOu1xyO5

Try to remove the variants you don't need in the fonts you've added.

I believe I have already added the same way you showed in the example. Here is what I have:

fontGP

This archived topic is closed to new replies.