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

Rendering is too slow unless installing @tailwindcss/vite as well? #3792

Closed
silloi opened this issue Apr 4, 2025 · 3 comments
Closed

Rendering is too slow unless installing @tailwindcss/vite as well? #3792

silloi opened this issue Apr 4, 2025 · 3 comments
Labels
question Further information is requested v3 #1289

Comments

@silloi
Copy link

silloi commented Apr 4, 2025

Description

I appreciate new version 3 of NuxtUI very much.

On production build of my recent app, it seems to take too much time (~5s) to SSR every page.
Some pages does not fetch any data, so I wondered if NuxtUI or TailwindCSS were responsible for that.
(Lighthouse score was very fine, by the way)

The app had neither dependencies of tailwindcss nor @tailwindcss/vite in package.json, so I installed them to try to improve first show speed.
Surprisingly, it worked and showed quickly (~1s). The problem now fixed.

It is friendly for developers that NuxtUI requires TailwindCSS packages because it contains the dependencies in it.
However, I don't think that the capability of NuxtUI is fully delivered without @tailwindcss/vite.
I wish some internal implementation around this problem would be identified to get refined. Thank you.

Here is the app before/after installing tailwindcss and @tailwindcss/vite (excuse me it's Japanese only):

@silloi silloi added question Further information is requested v3 #1289 labels Apr 4, 2025
Copy link
Member

This seems weird as @nuxt/ui already has tailwindcss and @tailwindcss/vite as dependencies. Your project would not work if those dependencies weren't installed.

Maybe the difference is you installed a newer version of tailwindcss than the one in your lockfile. Tailwind CSS is always improving so this might be it.

@romhml

This comment has been minimized.

@silloi
Copy link
Author

silloi commented Apr 6, 2025

I detected that the loading speed on my app has not improved so much.
I checked other configuration around framework or network. Thank you for cooperation.

@silloi silloi closed this as completed Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested v3 #1289
Projects
None yet
Development

No branches or pull requests

3 participants