Skip to content

Commit 0c5f4e7

Browse files
authored
Update font-optimization.md (#33266)
Copy pasting the first paragraph will trigger the `@next/next/google-font-display` lint rule, users should be able to copy and paste it without warnings.
1 parent ca19860 commit 0c5f4e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/basic-features/font-optimization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ By default, Next.js will automatically inline font CSS at build time, eliminatin
1111
```js
1212
// Before
1313
<link
14-
href="https://fonts.googleapis.com/css2?family=Inter"
14+
href="https://fonts.googleapis.com/css2?family=Inter&display=optional"
1515
rel="stylesheet"
1616
/>
1717

1818
// After
19-
<style data-href="https://fonts.googleapis.com/css2?family=Inter">
19+
<style data-href="https://fonts.googleapis.com/css2?family=Inter&display=optional">
2020
@font-face{font-family:'Inter';font-style:normal...
2121
</style>
2222
```

0 commit comments

Comments
 (0)