Hi,
Please can you give a definitive answer to the topic.
There are numerous forum posts on referencing FOIT/FOUT/webfont issues with Pro/X-Theme. The responses range from ‘don’t worry about this (Themeco support response from 2019)’ to ‘read this article’ -> Paid Plugin. There are also articles referencing ‘general page speed improvements’ and others referencing google fonts and preloading.
Digging deeper, there are many articles when searching Google which serve to over-complicate the matter - debating what needs to be done; HTML/CSS/JS - and whether to use Swap/Optional etc.
We have uploaded our fonts and used a plugin to preload them - then used Cloudflare to manage cache/preloading. However we still get the following results from PageSpeed analysis an GT Metrix:
Leverage the font-display CSS feature to ensure text is user-visible while webfonts are loading.
What does do recommend doing (CSS/HTML/JS) and where do recommend placing any code to sort this issue out. Just so you are aware, we previously used our TypeKit resource from Adobe and also Google Fonts, however, because of the way Google and Adobe manages fonts, this does not bode well for a decent page score - we don’t really care about this, however, Google appears to do so and we need to know how to improve this.
We would like to have sans-serif fonts visible whilst the ‘preloaded fonts’ are loading - which seems bizarre, because they are being preloaded yet GTMetrix and PageSpeed still produced the errors.
We’ve seen articles on the forum that say ‘use the absolute URL’ and others which reference …/…/ or /uploads/etc
Please can you help out and let us know exactly how to fix this issue. It’s a really common issue that we face and I can see that users were requesting this in 2019 on the forum. Please may we have a definitive answer to understand what to use (exactly) and where to place this (eg global CSS? etc).