Archived topic
How to add display:swap
1 reply · Started by Thushara on July 27, 2022
Viewing posts 1–2 of 2
Hi,
I added a non-Google font to my site using this guide. (https://docs.generatepress.com/article/adding-local-fonts/#:~:text=Starting%20in%20GeneratePress%203.1%2C%20you,on%20the%20Google%20Font%20option.)
I want to know how to add display:swap to it. I am trying to improve my PageInsight score.
Thanks
Hi Thushara,
You can add it to your @font-face declaration.
For instance:
@font-face {
font-family: My Font Name;
font-display: swap;
...etc...
}
Hope this clarifies!
This archived topic is closed to new replies.