Archived topic
Ensure text remains visible during webfont load --> Font-swap not working
1 reply · Started by Fabien on February 10, 2022
Hi,
I have the following isssue in Google Lightspeed : Ensure text remains visible during webfont load
As mentionned on other topics, I've added the following function that should solve the issue :
add_filter( 'generate_google_font_display', function() {
return 'swap';
} );
But I am still getting the error.
Can you please help ?
Hi Fabien,
Can you try going to Appearance > Customize > Typography and set the Google font display from there.
See this as reference: https://generatepress.com/forums/topic/ensure-text-remains-visible-during-webfont-load-font-swap-not-working/
Kindly clear your cache after doing so.
Please let us know how it goes. :)