This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Web Font Display

ཞིབ་བརྗོད།

Webfont display plugin help you to resolve pagespeed insights error : “Ensure text remains visible during webfont load”.

གཏུབ་རེིས།

FAQ

How it Works?

WebFont Display plugin will find all Google Fonts and font-awsome fonts in a webpage and set its font-display to swap property in your theme.

If anyone add custom fonts using @font-face property into css file then they need to add this property into @font-face{font-display:swap;} css manually.

By default browser will wait until the Google Fonts are downloaded to display the font. This is the reason for the error ‘ensure text remains visible during webfont load’ in Google PageSpeed Insights

Luckily Google Fonts now supports setting font-display via a new query parameter. By setting font-display to swap, the browser uses the fallback font and when downloading actual font is complete, it just swaps the font!

Note: Plugin can’t add font-display: swap to dynamically (via JS) injected Google Fonts

Where can I find the settings configuration?

Just install the plugin and active it. No further configuration is needed.

How to use this plugin for custom css?

You can use below mentioned css into your @font-face{font-display:swap}.

This plugin is not working for my font-awesome
For that please check your font-awesome file is properly registered or not
For example: wp_enqueue_style( ‘font-awesome’, get_stylesheet_directory_uri() . ‘/font-awesome/css/font-awesome.min.css’, array() );

གདེང་འཇོག

2023 ལོའི་ཟླ 5 ཚེས 5 ཉིན།
Thanks for developing this plugin. I would be glad kill this error 🙂 But using it it doesn’t desappear. Please testit for wordpress 6.2 and i will be happy 🙂 best regards Lars
གདེང་འཇོག 1 ཡོངས་སུ་ཀློག

བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“Web Font Display” is open source software. The following people have contributed to this plugin.

བྱས་རྗེས་འཇོག་མཁན།

“Web Font Display” has been translated into 1 locale. Thank you to the translators for their contributions.

ཁྱེད་ཀྱི་སྐད་ཡིག་ནང་ལ་ “Web Font Display” ཡིག་སྒྱུར་བྱོས།

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

དག་བཅོས་ཉིན་ཐོ།

1.0.0

  • Initial Release