Mobile app version of vmapp.org
Login or Join

Login to follow query

More posts by @Twilah146

2 Comments

Sorted by latest first Latest Oldest Best

 

@Sue5673885

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: www.alistapart.com/articles/responsive-web-design/

10% popularity Vote Up Vote Down


 

@Harper822

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."

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme