-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
FOUC with TailwindCSS and NextJs 13 #46510
Comments
same issue #46197 |
You beat me to the punch. This happens for normal CSS modules too. The issue is being discussed at some length in the app dir discussion thread. Here's a simple reproduction with a colocated CSS file (navigate to /about and the h1 on subsequent page should initially render in its default size, then pop into the size defined in the stylesheet). I've confirmed at least on latest Firefox and Chrome on Windows 10. EDIT: Not sure if this matters but for |
Also see #46947 :) |
Hello there, facing the same issue did anyone figure out how to solve it? |
We also have this issue. |
Yes happening for me too |
For me, this issue is resolved in today's release of NextJS 13.3.1. CLS now 0.033. Yay! |
Confirmed this issue is fixed as well after updating to v13.3.1. 🤝 |
Worked for me too. Thanks for the heads up |
This issue is fixed in recent versions with a test add in #47708. |
FOUC still present on Firefox for me Environment information I am using
Problem description FOUC is only present on Firefox browser. I can notice it only on fonts, I'm using next/font google font's along side with tailwind css. I can show some code if needed |
I am also having the FOUC issue only on the Firefox browser. Testing against Chrome shows no FOUC. Mine is with tailwind styling too, and not just fonts.
|
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue
https://stackblitz.com/edit/vercel-next-js-yxetxb?file=app%2Fpage.tsx
To Reproduce
Describe the Bug
Split second of white screen and unstyled content while iterating in dev. The StackBlitz should be a pretty minimal Tailwind + NextJS project setup. Subsequent refreshes seem to work fine.
Expected Behavior
No FOUC
Which browser are you using? (if relevant)
Chrome 109.0.5414.119 (Official Build) (x86_64)
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: