Custom Fonts do not lend themselves to be delivered via CDN #22790
dangub
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe.
I was excited to start using Custom Fonts, in order to be able to preload the font and avoid that extra request to a Google fonts styles.
But unfortunately I discovered that:
@font-facein the page.font-display: swap(Why?! This was possible with Google Fonts!!!), and so I can't fix the PageSpeed warning to "Ensure text remains visible during webfont load"Describe the solution you'd like
@font-facedeclarations (or at least, not include them in styles - one can use Custom Code to inline)font-displayattributeDescribe alternatives you've considered
I've considered building some kind of plugin to hook into WordPress or Elementor to see if I could remove this.
Additional context
No response
All reactions