Performance question regarding Ensure text remains visible during webfont load

Hello,

Trying to solve this performance recommendation according to google page speed insights. …

“Ensure text remains visible during webfont load” so i’ve put this css code on the main page (link in secure note) and thought that it would do the trick but not getting the desired results:

Can you clarify if i’ve done this right for the xtheme?

@import url(‘http://fonts.googleapis.com/css?family=Lato’);

@font-face {
font-family: “Lato”, Arial, serif;
font-display: swap;
}

Hi garlicfox,

Unfortunately, it is not possible to do so at the moment as the font-display property should be added into the @font-face declaration, and you do not have any way to do it correctly without affecting the core of the theme code.

But the good news is that we took the matter into our hands and our awesome developers created a new option in the Font Manager, that you will be able to select the Font Display option as a global setting for all of your fonts.

The feature will be available in the Pro version 3.1.0 and X version 7.1.0 release. We are currently in the Beta testing state for the new version and you can get more information about it in our status report.

Thank you.

wow, what fantastic news! perhaps an early christmas gift??? :slight_smile:

Hi @fxground,

We’re on the beta phase.There’s no target date set at the moment.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.