Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GeneratePress font-display: swap for Google Fonts. As documented here: https://woorkup.com/speed-up-wordpress/#web-fonts-generatepress-google-cdn
add_filter( 'generate_google_font_display', function() {
return 'swap';
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment