How to reduce css http requests?
1 large css file
or one css file which importing all other css
is this same?
What is the benefit of using this
@import url('/css/typography.css');
@import url('/css/layout.css');
@import url('/css/color.css');
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.
No as the Client still needs to load every CSS file (with one HTTP-request each)
Some Links to learn more about reducing HTTP requests:
If you are using Firefox I highly recommend Firebug, which offers a view with detailed information about HTTP-Requests.
EDIT:
As flybywire points out in the comments: YSlow is a Firefox extension that integrates with Firebug to analyze web page performance
3 easy things I would try first:
use on every page)
compressor or some online tool)
(things that are not shared among
pages)
Most of those things also apply to Javascript files.