I read somewhere that –
You should put all CSS (files) into one single stylesheet
Question –
1) Is it good practice? if yes, then why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should combine all your CSS into one file to reduce the amount of requests made to your server.
A similar topic is
sprite sheets, the combination of multiple images into one large image to also reduce the amount of requests made to your server.You’ll find that loading 100x 5kb files is a lot slower than loading a single 500kb file.
When you’re ready to upload your files to a live environment, you should also consider compressing your CSS and JavaScript files. There are a vast amount of online tools for this, eg: