3

Does using multiple CSS files (default.css, print.css, mobile.css...) affect a website's load time?

5

Yes. The more HTTP requests you make, the slower your site will load. That's why Yahoo's first recommendation in 'Best Practices for Speeding up Your Website' is to minimise HTTP requests by combining CSS files:

"Combined files are a way to reduce the number of HTTP requests by combining all scripts into a single script, and similarly combining all CSS into a single stylesheet. Combining files is more challenging when the scripts and stylesheets vary from page to page, but making this part of your release process improves response times."

6

Yes. Each one has an overhead of an http request. However, by the looks of it you're using different style sheets for different media types, so the browser should only use them if it needs them, providing you're defining them like this:

<link rel="stylesheet" type="text/css" href="core.css"
  media="screen" />
<link rel="stylesheet" type="text/css" href="print.css"
  media="print" />

For mobile you can be clever and use media queries according to the abilities of mobile devices: http://www.alistapart.com/articles/responsive-web-design/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.