Add fallback font for custom fonts and enable swapping

Hi there,

due to GDPR requirements we host our website font (Roboto) on our server. We added it as custom font in Cwicly and it works fine. Nevertheless, now Google Pagespeed Insights complains that while loading the font the text is not visible. Therefore it would be great to provide the css font-display: swap; option with custom fonts. Also, it would be helpful to be able to specify a set of custom font file sources so that e.g., if a font is already installed with the client the font files should not be loaded (via src: local("Roboto"), url("https://www.example.com/path/to/my/font/file.woff2")).

1 Like

Hi @MarloKessler,

I think it is already built it
refer to Font-display:swap - #2 by Marius

Basically in the Cwicly / settings / font sets
you have the display option that you can just set to swap (by default it is set to Auto)

This should fix your issue.

Oh yeah you’re right. Thank you for the hint!

You’re welcome, maybe change the subject of the thread, maybe we should even create a tip one or something as you are not the only one to have cross that same situation (I did).