Uh oh!
There was an error while loading. Please reload this page.
fix(nuxt): do not inline global styles in HTML response - #8666
Conversation
|
✅ Deploy Preview for nuxt3-docs canceled.
|
daguitosama
commented
Nov 12, 2022
Hi there guys, the experimental I think the inline is a really nice feature, and can be leaved here on the toolset as an opt-in feature. |
danielroe
commented
Nov 14, 2022
@daguitosama At the moment, we do not inline global CSS but CSS associated with individual Vue SFCs. |
stuible
commented
Nov 14, 2022
Is this expected to change? Some of the most critical CSS to a site (resets, grid systems, etc) is global CSS. |
danielroe
commented
Nov 14, 2022
@stuible The global CSS is still loaded synchronously, so there will be no flash when your page loads. |
Plinpod
commented
Jan 5, 2023
I agree in some cases, it still makes sense to inline the global CSS. Is there a way to force this to happen in the current configuration? |
🔗 Linked issue
nuxt/nuxt#14953
❓ Type of change
📚 Description
This reverts #7386. Rather than attempt to lazy load the entry CSS, it's safer to rely on browser fetching it in the previous (blocking) manner. We still experience the benefit of inlining SFC styles and we can reconsider entry CSS inlining in future.
📝 Checklist