Why font-display property is added to Astra?

No results found. Try again with different words?

Search must be at least 3 characters.

    Why font-display property is added to Astra?

    With Astra Version 1.8.3 and above, improvement is added with property font-display: fallback; for loading Astra Font.

    @font-face {
        font-family: "Astra";
        src: url( https://wpastra.com/wp-content/themes/astra/assets/fonts/astra.woff) format("woff"),url( 
        https://wpastra.com/wp-content/themes/astra/assets/fonts/astra.ttf) format("truetype"),url( https://wpastra.com/wp-content/themes/astra/assets/fonts/astra.svg#astra) format("svg");
        font-weight: normal;
        font-style: normal;
        font-display: fallback;

    While loading a website, there is a very short period of time (100ms according to Google) for which text will not display in a font applied to it. That means custom fonts ( Astra fonts ) will be invisible for a small period of time. Once your website is fully loaded text will display with a font set from the customizer.

    For this short period of time browsers have introduced new property font-display which adds a fallback font until custom font is loaded.

    For more information, please refer to the doc below –

    Was this article helpful?
    Did not find a solution? We are here to help you succeed.

    Related Docs

    Scroll to Top

    Download is Just A Click Away!

    Be among the first to try the beta version of Astra’s Header Footer Builder. Filling the form will ensure you’ll be the first to learn about updates and features.

    Download is Just A Click Away!

    Enter your email address and be the first to learn about updates and new features.