Ensure text remains visible during webfont load

Vitaliy WD
490 Posts
Vitaliy WD posted this 12 December 2019

Hello.

One of the recommendation from Google PageSpeed Insights is: "Ensure text remains visible during webfont load".
How can I do this with Themler? How to set font-display: swap to temporarily show a system font during page load?

Hello. One of the recommendation from Google PageSpeed Insights is: "Ensure text remains visible during webfont load". How can I do this with Themler? How to set `font-display: swap` to temporarily show a system font during page load?
Vote to pay developers attention to this features or issue.
6 Comments
Order By: Standard | Newest
mgarcia
44 Posts
mgarcia posted this 13 December 2019

Im using wordpress, and Ive seen this also on pagespeed.
Please advice,

Im using wordpress, and Ive seen this also on pagespeed. Please advice,
Vitaliy WD
490 Posts
Vitaliy WD posted this 17 December 2019

Hello.

Can you implement this in next minor update?
Also will be great to load font from local storage.
And replace Billion Fonts with Font Awesome 5.

Hello. Can you implement this in next minor update? Also will be great to load font from local storage. And replace Billion Fonts with Font Awesome 5.
Support Team
Support Team posted this 26 December 2019

Hello,

This request will be added to the wish list of future possible implementations.

Meanwhile, it is possible to add font-display: swap; line to all @font-face lines in the css file. This would work for the fonts and browsers that support font-display.

You can try adding this line to Home -> Settings -> Additional CSS (though there is no guarantee it would definitely work):

body {
font-display: swap!important;}

@font-face {
  font-display: swap;
}

Gina
Themler Support

Hello, This request will be added to the wish list of future possible implementations. Meanwhile, it is possible to add font-display: swap; line to all @font-face lines in the css file. This would work for the fonts and browsers that support font-display. You can try adding this line to Home -> Settings -> Additional CSS (though there is no guarantee it would definitely work): body { font-display: swap!important;} @font-face { font-display: swap; } Gina Themler Support
alopulid
25 Posts
alopulid posted this 26 August 2026

To address Google PageSpeed Insights’ “Ensure text remains visible during webfont load” recommendation in Themler, use the CSS font-display: swap property in your @font-face declaration so a fallback system font is displayed while the webfont loads, then replaced automatically once the custom font is ready. If Themler does not provide a direct setting, add the CSS through the theme’s custom CSS area or stylesheet, for example @font-face { font-family: 'CustomFont'; src: url('font.woff2') format('woff2'); font-display: swap; }. This improves perceived loading performance and helps prevent invisible text during font loading. For testing text rendering, you can also use cursed text generator examples such as H̷e̷l̷l̷o̷ or C̴u̴r̴s̴e̴d̴ ̴T̴e̴x̴t̴ to check how unusual Unicode characters behave with your selected fonts.

To address Google PageSpeed Insights’ “Ensure text remains visible during webfont load” recommendation in Themler, use the CSS `font-display: swap` property in your `@font-face` declaration so a fallback system font is displayed while the webfont loads, then replaced automatically once the custom font is ready. If Themler does not provide a direct setting, add the CSS through the theme’s custom CSS area or stylesheet, for example `@font-face { font-family: 'CustomFont'; src: url('font.woff2') format('woff2'); font-display: swap; }`. This improves perceived loading performance and helps prevent invisible text during font loading. For testing text rendering, you can also use [cursed text generator][1] examples such as **H̷e̷l̷l̷o̷** or **C̴u̴r̴s̴e̴d̴ ̴T̴e̴x̴t̴** to check how unusual Unicode characters behave with your selected fonts. [1]: https://cursedtextsgenrator.com/
mozhenhuamo
14 Posts
mozhenhuamo posted this 27 August 2026

Great tip on using font-display: swap to keep text visible while fonts load—really helps with PageSpeed. By the way, if you’re planning ahead, you can check what date it’ll be 20 weeks from now using that free weeks calculator.

Great tip on using font-display: swap to keep text visible while fonts load—really helps with PageSpeed. By the way, if you’re planning ahead, you can check what date it’ll be [20 weeks from now][1] using that free weeks calculator. [1]: https://weeksfromnow.org/
tvsmark00
2 Posts
tvsmark00 posted this 01 September 2026

To address Google PageSpeed Insights’ “Ensure text remains visible during webfont load” recommendation in Themler, use the CSS font-display: swap property in your @font-face declaration so a fallback system font is displayed while the webfont loads, then replaced automatically once the custom font is ready. If Themler does not provide a direct setting, add the CSS through the theme’s custom CSS area or stylesheet, Try different activities and pay attention to what your individual dog enjoys most. A varied routine can help keep your learn more about Mini Aussies physically active, mentally engaged, and happy.

To address Google PageSpeed Insights’ “Ensure text remains visible during webfont load” recommendation in Themler, use the CSS font-display: swap property in your @font-face declaration so a fallback system font is displayed while the webfont loads, then replaced automatically once the custom font is ready. If Themler does not provide a direct setting, add the CSS through the theme’s custom CSS area or stylesheet, Try different activities and pay attention to what your individual dog enjoys most. A varied routine can help keep your [learn more about Mini Aussies][1] physically active, mentally engaged, and happy. [1]: https://miniaussieshepherd.com/
You must log in or register to leave comments