Skip to content

Commit 36ab4d2

Browse files
magneticflux-jelbourn
authored andcommitted
docs(guides/typography): update recommended font url (#17698)
Update the Google Fonts URL to include `display=swap` which is now recommended. This improves font loading performance and fixes a Google Lighthouse Audit warning. Fixes #17697
1 parent 52ce0d4 commit 36ab4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/typography.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To get started, you first include the `Roboto` font with the 300, 400 and 500 we
3131
You can host it yourself or include it from [Google Fonts][2]:
3232

3333
```html
34-
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
34+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" rel="stylesheet">
3535
```
3636

3737
Now you can add the appropriate CSS classes to the elements that you want to style:

0 commit comments

Comments
 (0)