Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with Tailwind CSS docs leads to Cumulative Layout Shift #53

Open
2 tasks done
barrymichaeldoyle opened this issue Nov 8, 2023 · 1 comment
Open
2 tasks done

Comments

@barrymichaeldoyle
Copy link

Font Name (Geist Sans/Geist Mono):

  • Geist Sans
  • Geist Mono

Description of the Issue:
When using the docs supplied here https://www.npmjs.com/package/geist?activeTab=readme#with-tailwind-css there is an initial flash of rendering a fallback font which causes a Cumulative Layout Shift from initially rendering the screen. It's not great for my lighthouse score :)

Reverting to https://www.npmjs.com/package/geist?activeTab=readme#app-router solves it.

Steps to Reproduce:

  1. Follow the https://www.npmjs.com/package/geist?activeTab=readme#with-tailwind-css
  2. See layout shift on load (disable cache and run on slow network to se layout shift on text)
  3. Follow https://www.npmjs.com/package/geist?activeTab=readme#app-router to see it working fine

Expected Behavior:
I expect the tailwind css docs to recommend a way that works without cumulative layout shift (i.e. it should work like the app-router docs)

Environment (please complete the following information):

  • OS: MacOS
  • Software: NextJS 14
  • Version of the Font: 1.0.1
@barrymichaeldoyle barrymichaeldoyle added the bug Something isn't working label Nov 8, 2023
@guidoferreyra guidoferreyra added where: other and removed bug Something isn't working labels Mar 27, 2024
@KaivG
Copy link

KaivG commented Sep 4, 2024

I am experiencing the same issue. What does the where: other label mean? Has anyone found a work-around?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants