Skip to content

Commit

Permalink
Update font-optimization.md (vercel#33266)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
goncy authored and natew committed Feb 16, 2022
1 parent c8d14e9 commit efabe1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/basic-features/font-optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ By default, Next.js will automatically inline font CSS at build time, eliminatin
```js
// Before
<link
href="https://fonts.googleapis.com/css2?family=Inter"
href="https://fonts.googleapis.com/css2?family=Inter&display=optional"
rel="stylesheet"
/>

// After
<style data-href="https://fonts.googleapis.com/css2?family=Inter">
<style data-href="https://fonts.googleapis.com/css2?family=Inter&display=optional">
@font-face{font-family:'Inter';font-style:normal...
</style>
```
Expand Down

0 comments on commit efabe1a

Please sign in to comment.