Hello Support,
how can we ensure that text remains visible during webfont load?
Lighthouse => Performance => Diagnostics => “Ensure text remains visible during webfont load”
“Leverage the font-display CSS feature to ensure text is user-visible while webfonts are loading”
themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.woff’
we try this: font-display property via quick css => font-display not known
Can you guide us what to do?
Best regards
Thilo Kiefer
Hey ThiloKiefer,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.
Best regards,
Basilis
Hi,
Thank you for the update.
According to a “lighthouse” git discussion, you have to put the property in front of everything else. Please edit the config-templatebuilder > avia-templatebuilder > php > font-manager-class.php file, look for this code around line 508:
@font-face {font-family: '{$font_name}'; font-weight: normal; font-style: normal;
… and then replace it with:
@font-face {font-display: block; font-family: '{$font_name}'; font-weight: normal; font-style: normal;
// https://github.com/GoogleChrome/lighthouse/issues/6628
Best regards,
Ismael
Thankx … works!
Hi ThiloKiefer,
Glad that we could help :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko