-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
flash of unstyled content with css styles inside a SFC #229
Comments
or may be this is applied too late css: ['~/static/css/styles.css'], |
@Mitch-i Would you provide a reproduction, please - and the other info we ask for in a new issue template on this repo? (I know you filed it elsewhere originally!) |
If you are using vite mode, keep track on nuxt/vite#211 |
I've been seeing the same (FOUC) when using the |
Is this still an issue? |
Hi, I have a similar problem (though I'm not using Nuxt Bridge). When I'm using components from pages inside app.vue, they don't have styles on the first load. Here's the repository I created for reproduction: https://github.com/morinokami/nuxt3-fouc-repro And here's a screenshot demonstrating the problem (the word "test" at the upper left doesn't have styles on the first view, but the NuxtWelcome component does): My environment:
|
I've had this problem in nuxt3, upgraded to latest nuxt3 version and it disappeared, give it a try |
I've also noticed it while updating one of my projects from nuxt2 to nuxt-bridge. I've investigated it a bit more and it seems like only part of css are passed from SSR, and other aren't just there. I've made also quick repro here and live demo Just refresh and see unloaded classes for split second at the center. |
+1 for this. Upgraded a nuxt 2 project to bridge and seeing a flash of unstyled content in dev and also after using Here's a quick code sandbox. On the sandbox it appears that the error only happens every few refreshes, but on my project (maybe due to more css), it's happening every refresh: https://codesandbox.io/s/nameless-http-vcxw98?file=/package.json. Can't seem to figure out how to get codesandbox to allow me to run the project in production mode, but hopefully this is enough information! Let me know if I can provide anything else. Flash of unstyled content - Watch Video |
i some how resolved the problem, I not remember how, may be with
|
Let's follow in #26. |
I put styles for each component inside it (SFC), and with nuxt-edge+ nuxt/bridge when refresh page it is shown without styles and after second it is applied.
Was ok prior
The text was updated successfully, but these errors were encountered: