Swap for fonts

Vitaliy WD
414 Posts
Vitaliy WD posted this 2 weeks ago

Hi.

Can you add &display=swap to the end of google fonts links?

For example:

<link href="//fonts.googleapis.com/css?family=Open+Sans:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&display=swap" rel="stylesheet" type="text/css" />

This will increase page speed score.

Hi. Can you add `&display=swap` to the end of google fonts links? For example: <link href="//fonts.googleapis.com/css?family=Open+Sans:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&display=swap" rel="stylesheet" type="text/css" /> This will increase page speed score.

Last edited 2 weeks ago by Vitaliy WD

Vote to pay developers attention to this features or issue.
4 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 2 weeks ago

Hello Vitaliy,

We can add this feature to the wish list for future implementations.

Meanwhile, you can add custom CSS code to Home-> Settings -> Additional CSS. The code would be something like this:

p {
font-display: swap!important;
}
@font-face {
  font-display: swap;
}

It can be set for a, h1, h2, and other text elements, depending on where you use that googlefont.

Gina
Themler Support

Hello Vitaliy, We can add this feature to the wish list for future implementations. Meanwhile, you can add custom CSS code to Home-> Settings -> Additional CSS. The code would be something like this: p { font-display: swap!important; } @font-face { font-display: swap; } It can be set for a, h1, h2, and other text elements, depending on where you use that googlefont. Gina Themler Support
Vitaliy WD
414 Posts
Vitaliy WD posted this 2 weeks ago

Thank you for an tip, Gina.

It's compicated to add swap to each text selector and looks not elegant... p, span, li, h1, h2, etc... So will be great if you add this small improvment in next beta update.

Small peace of code and much better performance.

Thank you for an tip, Gina. It's compicated to add `swap` to each text selector and looks not elegant... p, span, li, h1, h2, etc... So will be great if you add this small improvment in next beta update. Small peace of code and much better performance.
Support Team
Support Team posted this 2 weeks ago

Noted and forwarded to our management team.

Gina
Themler Support

Noted and forwarded to our management team. Gina Themler Support
DaveOzric
924 Posts
DaveOzric posted this 3 days ago

2031 is the ETA

2031 is the ETA
You must log in or register to leave comments