Render blocking styles with app route and tailwind #59814
Replies: 10 comments 8 replies
-
Have you gathered any insights into this? Experiencing the same, cheers! |
Beta Was this translation helpful? Give feedback.
-
Do you have any solution for this problem? I really can't find a solution to this |
Beta Was this translation helpful? Give feedback.
-
@JohnGemstone @timomedia sorry, haven't had much time to dig deeper into this. No luck so far :/ Please let me know if you make any findings! |
Beta Was this translation helpful? Give feedback.
-
any update for this issues ? |
Beta Was this translation helpful? Give feedback.
-
I can confirm, having the same issue even after reducing tailwind to 5.7KB on vercel |
Beta Was this translation helpful? Give feedback.
-
having same issue, i am using tailwind and fontawesome. |
Beta Was this translation helpful? Give feedback.
-
Same here, one 12kb css file and it takes 1 second :( |
Beta Was this translation helpful? Give feedback.
-
@leerob any help here? |
Beta Was this translation helpful? Give feedback.
-
If you are using the standard Next.js + Tailwind setup, you are going to have great performance for loading style sheets. Tailwind will automatically remove unused styles, and loading (and caching) and single, immutable style sheet has great performance. This is much faster than alternatives. More on this here: https://leerob.io/blog/css You mention you are also including an external style sheet from |
Beta Was this translation helpful? Give feedback.
-
Hi! Some updates here? I have the same problem. My lighthouse in performance is 99% because of the import of tailwind in layout.js. You can replicate it If you create a new project with npx create-next-app with tailwind. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Im running on next 14.0.4 with tailwindcss 3.3.3 and i get quite low scores (lower than expected) because of render blocking resources. My assumption was that next and tailwind together would configure and optimise css to only import what is used, but it seems like it's not really doing that?
I'm only importing global.css into my layout file, as provided in the documentation. Is there something I'm missing? Can I do something more to optimise and prevent my css from blocking?
Worth mentioning, I am importing an external style sheet from node modules, also according to the documentation.
Thank you for any thoughts!
Beta Was this translation helpful? Give feedback.
All reactions