Last active
March 2, 2021 23:33
-
-
Save brianleejackson/b96562217a7c8e04f18c721b47334d2f to your computer and use it in GitHub Desktop.
GeneratePress font-display: swap for Google Fonts. As documented here: https://woorkup.com/speed-up-wordpress/#web-fonts-generatepress-google-cdn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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