Any GTmetrix Waterfall experts in the house? Are my fonts being preloaded?

BigBoogie

Regular Member
Joined
Aug 12, 2018
Messages
494
Reaction score
300
I am using OMGF, and have entered the font path in wprocket to preload, but it certainly looks like they are not being preloaded to me. Want to double-check with someone smarter before I troubleshoot.


2023-05-16 15 35 02.jpg
 
I don't think so cos if they are preloaded, the font files will be at the top of the waterfall chart.
 
Just be aware that elegant themes isn't as great as they make themselves out to be.
 
I don't think so cos if they are preloaded, the font files will be at the top of the waterfall chart.
Is it? I mean, Any script/stylesheet/other resources could have been in that initial waterfall.


In terms of the thread, it is not clear. Hard to say if it is doing its job to be honest. The preload attribute (that your plugin ultimately achieves) ultimately tells the browser to try to load that resource ASAP. Doesn’t mean it will be first, but it will be before onload event is fired.


Don’t worry about custom fonts to be honest. Use a font stack, and define system fonts that resemble with the font family you are going to use.
 
In WordPress, here is a nice article about it.

https://woorkup.com/system-font/
Exactly! Luckily it extends.. like

font-family:sys-font-1,sys-2,your-font;

The browser client is very smart. ;) :D


Edit: hmmm but, I think if sys font 1 is found and loaded already, your font will not be loaded even if found. Take this as a gotcha may be, and try doing

yourfont,sysfont:

instead of the opposite.

This is why fonts should be loaded critically by the way.
 
Last edited:
Don’t worry about custom fonts to be honest. Use a font stack, and define system fonts that resemble with the font family you are going to use.

Thanks a lot. Now I have to spend the night implementing it on all my sites...

Serious though. Thanks. Most of my fonts are pretty basic and I don't mind replacing them with something similar.

There are so many things you don't know, you don't know.
 
Back
Top