Unverified Commit 0c5f4e78 authored by Gonzalo Pozzo's avatar Gonzalo Pozzo Committed by GitHub

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.
parent ca198606
......@@ -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>
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment