3 ms·
The http call bloat is a by-product of how your build process works though — if your CSS lives in your components then you can easily bundle it just like you bu
by rich_harris 9y ago
The http call bloat is a by-product of how your build process works though — if your CSS lives in your components then you can easily bundle it just like you bundle your JavaScript. The ability to lazy-load individual components and their styles if you wish is a feature, not a bug.
It's fine to still have a (preferably fairly small!) global stylesheet that covers fonts, colours and so on. The key is to avoid your components potentially clobbering each other, which is what SFCs accomplish.