I am new to web development and I'm doing a project. my question is if I create more than one css file and then include them all to the main style.css that would result heavy to load when it will be online or it's a good practice? Thank you so much for your help <3
CodePudding user response:
First of all this is related to
Best way to include CSS? Why use @import?
In my personal experience I previously liked to use that practice because it reduced the amount of tags in my html, however, nowadays you can set several properties like asynchronous loading which is not possible from @import, not to mention that opening the secondary css sheets becomes more difficult, it is not as easy as viewing source code and clicking on styles.css so as mentioned in the related article it could be a good option but not a rule and not a recommended option.