-
Notifications
You must be signed in to change notification settings - Fork 2.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 in SPA mode with tailwindcss in production mode #8536
Comments
This looks like it's 2 underlying issues:
|
Fix by #8538 and will be available in |
🤖 Hello there, We just published version Thanks! |
|
That's not a cached version - a 304 means the request went to cloudflare and cloudflare responded with "nothing has changed" - but I think since it's still a net new request/response the old styles are removed and the new ones appliued causing a brief FOUC. Instead you want to make sure you have a proper |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
Thanks, pushed a header of |
Reproduction
I built a site with tailwindcss in remix SPA mode, and it's deployed on cloudflare page here https://venft-lookup.pages.dev/
As you can see in the below screenshot, there's a flash of unstyled content:
CleanShot-xX4JdCH0.mp4
Code is hosted on https://github.com/oxSaturn/venft-lookup, but I can't reproduce it on dev env.
System Info
Used Package Manager
pnpm
Expected Behavior
No fouc in production.
Actual Behavior
Fouc in production.
The text was updated successfully, but these errors were encountered: