Support for font-display
See original GitHub issueGoogle Fonts is adding support for font-display
. It would be great to add support to Typography.js.
More info: https://www.zachleat.com/web/google-fonts-display/
Issue Analytics
- State:
- Created 4 years ago
- Reactions:15
- Comments:16
Top Results From Across the Web
"font-display" | Can I use... Support tables for HTML5, CSS3, etc
CSS font-display. - WD. @font-face descriptor font-display that allows control over how a downloadable font renders before it is fully loaded. Usage %...
Read more >font-display - CSS: Cascading Style Sheets - MDN Web Docs
The font-display descriptor determines how a font face is displayed based on whether and when it is downloaded and ready to use.
Read more >font-display | CSS-Tricks
The font-display property defines how font files are loaded and displayed by the browser. It is applied to the @font-face rule which defines ......
Read more >Controlling Font Performance with font-display
Deciding the behavior for a web font as it is loading can be an important performance tuning technique. The new font-display descriptor for ......
Read more >A New Way To Reduce Font Loading Impact: CSS Font ...
Web fonts are often terrible for web performance and none of the font loading strategies are particularly effective to address that.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello, I’ve added
fontDisplay
as a valid option for the config object in this PR: #212For example:
Which would generate a url of:
http://fonts.googleapis.com/css?family=Noto+Sans+JP:300,400,500,700|Roboto+Condensed:700&display=swap
Agreed 😃
Although you can already achieve that in an ugly way by setting the
&display=swap
query param at the last item of the styles array of the googleFonts props.will be rendered as:
http://fonts.googleapis.com/css?family=Noto+Sans+JP:300,400,500,700|Roboto+Condensed:700&display=swap