Reputation: 153
I'm new to Web development so sorry if this question may seem obvious.
I would like to separate my css files in precise categories.
buttons.css
lists.css
reset.css
But I know that doing so, and importing them with pure css, will cause multiple http requests, slowing down the page loading.
I know that something is possible with a language called Sass. Thing is, I would like to avoid it, and try to fix this using only css standard.
Is it even possible? Or sass and other things like it are the only solution?
Thanks!
Upvotes: 1
Views: 510
Reputation: 943561
You cannot achieve this with plain CSS.
You can use a tool which will combine those files into a single file. SASS is one such tool (and one which is very popular, well tested, and abundant in other features). You can write a single file which @imports
the CSS files (which, IIRC, will requires .scss
file extensions) and otherwise not use any SASS features at all.
You could use other tools instead (such as cat
).
Upvotes: 2