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

Latest nuxt version delays the load of CSS on SSR #27148

Closed
popescuandrei9mai opened this issue May 10, 2024 · 3 comments
Closed

Latest nuxt version delays the load of CSS on SSR #27148

popescuandrei9mai opened this issue May 10, 2024 · 3 comments

Comments

@popescuandrei9mai
Copy link

popescuandrei9mai commented May 10, 2024

Environment

  • Node Version: v20.9.0
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: yarn@1.22.19
  • Builder: -
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://codesandbox.io/p/devbox/magical-joji-ynhtsr

Describe the bug

While the server is running in preview mode, if you set your network to slow 3G, you can see that the CSS for the 4 simple components defined and used on homepage is loaded after the whole page is loaded. The CSS missing is only the one defined in components. This is a minimal reproduction but on a full size project, with a lot of components, loading them all first without CSS is a dealbreaker

Additional context

Screen_Recording_2024-05-10_at_1.11.52_PM.mov

No response

Logs

No response

@manniL
Copy link
Member

manniL commented May 10, 2024

Can you double check with the nightly channel by any chance?

@popescuandrei9mai
Copy link
Author

Can you double check with the nightly channel by any chance?

Tried the nightly channel on my local machine and it indeed fixes the problem. This means that the next nuxt release will fix this problem?

@manniL
Copy link
Member

manniL commented May 10, 2024

Yes, correct!

Closing as duplicate of #26514

@manniL manniL closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2024
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

2 participants