How can I make sure to use this CSS function? Google Pagespeed Insights recommends adding this. Is there a way to add this via custom code?
Just chiming in that I have this question too!
Why not? Just add your properties with any custom code method (for the whole site, for the page, with embed)
For those inquiring minds…
Webflow google font code using js:
Standard google font import code:
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">
I would also love to know the answer to @Ntchi 's question. Font-display=swap would help my site greatly it seems. Is there a way to directly access the CSS to make sure the swap is in there?
I would also like to know how I can use font-display: swap; with Webflow Font embed.
I’m also curious about this.
I would love to find out this!
Also trying to find a solution to this.
For those that did not visit the link and are asking how to do this with fonts loaded via the webfont,js library that Webflow uses the answer is : TL’DR => you can’t.
The article presents options for you if you want to load the fonts yourself or leverage Cloudflare service workers. Those would be the only two options for Webflow sites hosted on Webflow.
Awesome thanks. New to webflow forum and didn’t see that your previous comment with the link was the solution. Will check it out.