Unverified Commit e4f66fe9 authored by Mohamed ElSaadany's avatar Mohamed ElSaadany Committed by GitHub

Adds `<link rel="preconnect" ... />` to example optimized font output (#36529)

This makes it clear that the font optimization adds these for you.
This avoids duplicate `<link rel="preconnect" />` in the HTML output if the developer is unaware that it is being added automatically.



## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
parent ea0456dc
...@@ -16,6 +16,7 @@ By default, Next.js will automatically inline font CSS at build time, eliminatin ...@@ -16,6 +16,7 @@ By default, Next.js will automatically inline font CSS at build time, eliminatin
/> />
// After // After
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<style data-href="https://fonts.googleapis.com/css2?family=Inter&display=optional"> <style data-href="https://fonts.googleapis.com/css2?family=Inter&display=optional">
@font-face{font-family:'Inter';font-style:normal... @font-face{font-family:'Inter';font-style:normal...
</style> </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