ຄຳອະທິບາຍ
Webfont display plugin help you to resolve pagespeed insights error : “Ensure text remains visible during webfont load”.
ຄຳຖາມທີ່ພົບເລື້ອຍ
-
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-displayvia a new query parameter. By settingfont-displayto 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: swapto 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() );
ການຣີວິວ
ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ
“Web Font Display” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການພັດທະນາປລັກອິນນີ້.
ຜູ້ຮ່ວມພັດທະນາ“Web Font Display” ໄດ້ຖືກແປເປັນ 2 ພາສາທ້ອງຖິ່ນ. ຂໍຂອບໃຈ ທີມງານຜູ້ແປ ສຳລັບການປະກອບສ່ວນຂອງເຂົາເຈົ້າ.
ແປ “Web Font Display” ເປັນພາສາຂອງເຈົ້າ.
ສົນໃຈຮ່ວມພັດທະນາບໍ່?
ເບິ່ງລະຫັດ, ກວດເບິ່ງ ຄັງເກັບ SVN, ຫຼື ຕິດຕາມ ບັນທຶກການພັດທະນາ ຜ່ານ RSS.
ບັນທຶກການປ່ຽນແປງ
1.0.0
- Initial Release

