You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArekBartnik
changed the title
Font optimization - style for custom fonts in included on pages without link to font provider
Font optimization - style tag for custom fonts is included on pages without a link to a font provider
Apr 11, 2021
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 28, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
10.1.4-canary.3
What version of Node.js are you using?
14.15
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
next start, Vercel
Describe the Bug
I've two pages - one with a
link
tag to a custom font (https://nextjs-fonts-optimization-bug.vercel.app/with-font) and one without custom font (https://nextjs-fonts-optimization-bug.vercel.app/without-font).When I start on the page with a custom font then a
style
tag is included in all pages until I'll restart the server.I think this behaviour appears only when using
getServerSideProps
- I couldn't reproduce the bug consistently without it.Expected Behavior
The generated
style
tag should be included only for pages with alink
tag to a custom font.To Reproduce
https://nextjs-fonts-optimization-bug.vercel.app/with-font
https://nextjs-fonts-optimization-bug.vercel.app/without-font
repo: https://github.com/ArekBartnik/nextjs-fonts-optimization-bug
The text was updated successfully, but these errors were encountered: