Using swap for font display, also font caching?

Highlighted
New Member
5 0 0

I am trying to use font-display: swap to force a common font to display page text while loading, and then swap to the web font when it's downloaded. I've gone through all the CSS, adding "font-display: swap;" where necessary, but my theme's two main fonts weren't affected. Those seem to be set outside of the CSS and I can't figure out how to get them to swap.

 

Also, there doesn't seem to be any cache control on the web fonts. I'd like to give them a longer TTL. Is there a way to do this?

0 Likes