PageSpe Insights throws an error:
Set all text to display when loading web fonts.
https://ganzola.ru/wp-content/themes/vantage/icons/vantage-icons.woff
It takes a long time to download this font.
How can I solve this problem?
Set all text to display when loading web fonts.
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi Ilya
Thanks for reaching out.
vantage-icons.woff
are loaded in the theme’s style.css file. This file is for icons, it isn’t for text, this introduces challenges.https://github.com/siteorigin/vantage/blob/develop/style.css#L3675-L3681
More on this font-display here: https://css-tricks.com/almanac/properties/f/font-display/.
I’m not sure if Google can differentiate between icons and fonts for displaying text. Setting all text to display would make more sense if the font was for text but in this case, the font is for icons.
For more on the challenges of using
font-display
with web icons, please, see:https://www.zachleat.com/web/font-display-icon-fonts/
https://stackoverflow.com/questions/49461308/correct-font-display-value-for-icon-fonts
If you’d like you can change the
font-display
value you can try adding to AppearanceCustom CSS or CustomizeAdditional CSS:To view the possible values for
font-display
, please see the CSS Tricks link above.In General, adding Autoptimize and a caching plugin like WP Super Cache are helpful when optimizing for performance.