Swap for fonts

Vitaliy WD
490 Posts
Vitaliy WD posted this 13 October 2020

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 13 October 2020 by Vitaliy WD

Vote to pay developers attention to this features or issue.
15 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 14 October 2020

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
490 Posts
Vitaliy WD posted this 15 October 2020

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 15 October 2020

Noted and forwarded to our management team.

Gina
Themler Support

Noted and forwarded to our management team. Gina Themler Support
DaveOzric
935 Posts
DaveOzric posted this 19 October 2020

2031 is the ETA

2031 is the ETA
Babu
2 Posts
Babu posted this 11 January 2021

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,

Where exactly can we include the mentioned code in a Joomla Template generated from Artisteer ?

Should it be at the path JoomlaWebsite-->Templates-->TemplateName-->css-->custom.css ?

I tried the code you suggested and also tried with:

.art-postcontent h1 {
font-display: swap!important;
}
@font-face {
font-display: swap;
}

but both of them don't seem to work. Can you please suggest the correction ?

Thanks,
Krishna

> 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, Where exactly can we include the mentioned code in a Joomla Template generated from Artisteer ? Should it be at the path JoomlaWebsite-->Templates-->TemplateName-->css-->custom.css ? I tried the code you suggested and also tried with: .art-postcontent h1 { font-display: swap!important; } @font-face { font-display: swap; } but both of them don't seem to work. Can you please suggest the correction ? Thanks, Krishna
DaveOzric
935 Posts
DaveOzric posted this 11 January 2021

I would not hold your breath for any updates. It's been YEARS since they added or updated anything. Yes YEARS. They are done with Themler.

I would not hold your breath for any updates. It's been YEARS since they added or updated anything. Yes YEARS. They are done with Themler.
codexa174
8 Posts
codexa174 posted this 31 March 2026

Yeah, font-display: swap is a good trick for performance ๐Ÿ‘. Also, sometimes fonts donโ€™t load or render properly across devices. Tools like Schriftgenerator can help create text styles that donโ€™t rely on external fonts, so they load instantly and stay consistent.

Yeah, font-display: swap is a good trick for performance 👍. Also, sometimes fonts donโ€™t load or render properly across devices. Tools like [Schriftgenerator][1] can help create text styles that donโ€™t rely on external fonts, so they load instantly and stay consistent. [1]: https://schriftengenerators.de
Jaloot
5 Posts
Jaloot posted this 29 April 2026

Yeah, adding &display=swap is definitely the cleanest way to improve perceived performance, especially to avoid FOIT (flash of invisible text).

One thing to keep in mind though is that even with swap, you're still relying on external font loading, so there can be slight layout shifts depending on fallback fonts.

In cases where consistency across devices is more important than exact font rendering, Iโ€™ve sometimes used styled Unicode text instead. It loads instantly since itโ€™s just plain text, no font request involved.

If anyone wants to experiment with that approach, this tool is quite handy: https://schriften-generator.de/kursive-schrift/

Not a replacement for web fonts, but useful for headings, UI text, or social content.

Yeah, adding &display=swap is definitely the cleanest way to improve perceived performance, especially to avoid FOIT (flash of invisible text). One thing to keep in mind though is that even with swap, you're still relying on external font loading, so there can be slight layout shifts depending on fallback fonts. In cases where consistency across devices is more important than exact font rendering, Iโ€™ve sometimes used styled Unicode text instead. It loads instantly since itโ€™s just plain text, no font request involved. If anyone wants to experiment with that approach, this tool is quite handy: https://schriften-generator.de/kursive-schrift/ Not a replacement for web fonts, but useful for headings, UI text, or social content.
Jaloot
5 Posts
Jaloot posted this 25 June 2026

I agree that adding &display=swap is one of the easiest performance improvements when using Google Fonts. It helps reduce FOIT and usually improves Core Web Vitals without changing the site's design.

That said, there are also situations where loading an external font isn't necessary. For things like social media posts, profile names, or short headings, Unicode text can be a lightweight alternative because it doesn't require any font requests at all. If anyone wants to experiment with different text styles, I've found https://letrasbonitas.com.es/facebook/ useful for generating decorative text that works well in Facebook posts, bios, and comments.

Of course, it's not a replacement for proper web typography or branding fonts, but it's a nice option when you just need stylized text without adding extra font files or affecting page performance. Choosing the right approach really depends on whether you're optimizing a website or simply creating eye-catching content for social platforms.

I agree that adding `&display=swap` is one of the easiest performance improvements when using Google Fonts. It helps reduce FOIT and usually improves Core Web Vitals without changing the site's design. That said, there are also situations where loading an external font isn't necessary. For things like social media posts, profile names, or short headings, Unicode text can be a lightweight alternative because it doesn't require any font requests at all. If anyone wants to experiment with different text styles, I've found https://letrasbonitas.com.es/facebook/ useful for generating decorative text that works well in Facebook posts, bios, and comments. Of course, it's not a replacement for proper web typography or branding fonts, but it's a nice option when you just need stylized text without adding extra font files or affecting page performance. Choosing the right approach really depends on whether you're optimizing a website or simply creating eye-catching content for social platforms.
ngoh71106
3 Posts
ngoh71106 posted this 25 June 2026

Good point about &display=swap โ€” it's a small change but the impact on Lighthouse scores and Core Web Vitals is real, especially on slower connections where the browser would otherwise block text rendering while waiting for the font file to load.
To add a bit more context for anyone reading this thread: font-display: swap tells the browser to immediately render text using a fallback system font, then swap in the Google Font once it finishes downloading. The result is that users see content right away instead of staring at invisible text for a second or two. That's what fixes the FOIT (Flash of Invisible Text) issue you mentioned.
The tricky part is making sure your fallback font is reasonably close in size and weight to your chosen Google Font โ€” otherwise the layout shift when the swap happens can actually hurt your CLS score. So pairing &display=swap with a well-matched font stack in your CSS is worth the extra few minutes.
On the Unicode text generator suggestion โ€” that's a creative workaround for social platforms where you genuinely have no control over font rendering anyway. Makes sense in that context. For actual web pages though, agreed it's not a substitute for proper typography.
Hopefully the Themler team can implement this at the platform level so users don't have to manually edit font links every time. One setting, applied globally, would save a lot of people from having to think about it at all. driving directions

Good point about &display=swap โ€” it's a small change but the impact on Lighthouse scores and Core Web Vitals is real, especially on slower connections where the browser would otherwise block text rendering while waiting for the font file to load. To add a bit more context for anyone reading this thread: font-display: swap tells the browser to immediately render text using a fallback system font, then swap in the Google Font once it finishes downloading. The result is that users see content right away instead of staring at invisible text for a second or two. That's what fixes the FOIT (Flash of Invisible Text) issue you mentioned. The tricky part is making sure your fallback font is reasonably close in size and weight to your chosen Google Font โ€” otherwise the layout shift when the swap happens can actually hurt your CLS score. So pairing &display=swap with a well-matched font stack in your CSS is worth the extra few minutes. On the Unicode text generator suggestion โ€” that's a creative workaround for social platforms where you genuinely have no control over font rendering anyway. Makes sense in that context. For actual web pages though, agreed it's not a substitute for proper typography. Hopefully the Themler team can implement this at the platform level so users don't have to manually edit font links every time. One setting, applied globally, would save a lot of people from having to think about it at all. [driving directions][1] [1]: https://driving-directionsmaps.io/
abdullahumer415
2 Posts
abdullahumer415 posted this 05 August 2026

I agree that using &display=swap is a simple way to improve how Google Fonts load, especially for reducing invisible text during page load.
For short social media text, profile names, or decorative headings, Unicode text can also be useful because it does not require extra font files. I have used http://letrasbonitashub.com/ to create different text styles for Facebook posts, bios, and comments.
It is not a replacement for proper website fonts, but it can work well for small social media content where you need styled text without adding another font request.

I agree that using &display=swap is a simple way to improve how Google Fonts load, especially for reducing invisible text during page load. For short social media text, profile names, or decorative headings, Unicode text can also be useful because it does not require extra font files. I have used http://letrasbonitashub.com/ to create different text styles for Facebook posts, bios, and comments. It is not a replacement for proper website fonts, but it can work well for small social media content where you need styled text without adding another font request.
syedasif9781
2 Posts
syedasif9781 posted this 03 September 2026

Adding &display=swap to Google Fonts is a small change, but it can make a noticeable difference to perceived loading speed by showing fallback text while the web font loads. It also seems cleaner than applying font-display: swap separately to multiple selectors. One thing worth checking afterward is whether the fallback and final font have similar dimensions, since large differences can still create layout shifts. When troubleshooting cases where text appears blank or contains unusual hidden characters, copiar un espacio invisible can also be useful for identifying invisible text-related issues. Hopefully this becomes a straightforward built-in option rather than requiring manual fixes.

Adding `&display=swap` to Google Fonts is a small change, but it can make a noticeable difference to perceived loading speed by showing fallback text while the web font loads. It also seems cleaner than applying `font-display: swap` separately to multiple selectors. One thing worth checking afterward is whether the fallback and final font have similar dimensions, since large differences can still create layout shifts. When troubleshooting cases where text appears blank or contains unusual hidden characters, [copiar un espacio invisible][1] can also be useful for identifying invisible text-related issues. Hopefully this becomes a straightforward built-in option rather than requiring manual fixes. [1]: https://textoinvisibles.com/
lemooon58
6 Posts
lemooon58 posted this 2 weeks ago

One more angle on the "zero font requests" idea โ€” for decorative text where you genuinely don't need a typeface file at all, Unicode styled text is worth keeping in your toolkit. It's plain characters, so there's no request, no FOIT, no swap, no CLS risk from fallback mismatches. I keep this page bookmarked for quick copy-paste styles when I'm doing headings or social content: font copy paste
Obviously for real body text and branding you still want proper web fonts with &display=swap โ€” but for the decorative stuff, skipping the font request entirely is the fastest possible "load time" ๐Ÿ˜„

One more angle on the "zero font requests" idea โ€” for decorative text where you genuinely don't need a typeface file at all, Unicode styled text is worth keeping in your toolkit. It's plain characters, so there's no request, no FOIT, no swap, no CLS risk from fallback mismatches. I keep this page bookmarked for quick copy-paste styles when I'm doing headings or social content: [font copy paste][1] Obviously for real body text and branding you still want proper web fonts with &display=swap โ€” but for the decorative stuff, skipping the font request entirely is the fastest possible "load time" 😄 [1]: https://bold-text.com/font-copy-paste
lemooon58
6 Posts
lemooon58 posted this 2 weeks ago

Adding to the "reduce font requests" theme โ€” one thing I did on my own sites was audit icon fonts. A lot of pages load an entire webfont just for a handful of glyphs (arrows, stars, checkmarks). Replacing those with plain Unicode symbols cut the request entirely โ€” no font-display tuning needed, they render instantly on every device, including iOS Safari. If you want a quick collection to copy from: text symbols
Of course body text still deserves proper typography with &display=swap โ€” but for decorative glyphs, "no font file at all" beats "font file with good fallback settings" ๐Ÿ˜„

Adding to the "reduce font requests" theme โ€” one thing I did on my own sites was audit icon fonts. A lot of pages load an entire webfont just for a handful of glyphs (arrows, stars, checkmarks). Replacing those with plain Unicode symbols cut the request entirely โ€” no font-display tuning needed, they render instantly on every device, including iOS Safari. If you want a quick collection to copy from: [text symbols][1] Of course body text still deserves proper typography with &display=swap โ€” but for decorative glyphs, "no font file at all" beats "font file with good fallback settings" 😄 [1]: https://simbolos.app/text-symbols

Last edited 2 weeks ago by lemooon58

Letras Bonitas
1 Posts
Letras Bonitas posted this 14 hours ago

letrasbonitasz.com es un generador gratuito que convierte tu texto en cientos de estilos de letras para copiar y pegar. Sirve para Instagram, WhatsApp, TikTok, Discord o tu nick de juego. No necesitas instalar nada ni registrarte: escribes tu nombre o una frase, eliges el estilo que mรกs te guste y pulsas copiar.

[letrasbonitasz.com][1] es un generador gratuito que convierte tu texto en cientos de estilos de letras para copiar y pegar. Sirve para Instagram, WhatsApp, TikTok, Discord o tu nick de juego. No necesitas instalar nada ni registrarte: escribes tu nombre o una frase, eliges el estilo que más te guste y pulsas copiar. [1]: https://letrasbonitasz.com/
You must log in or register to leave comments