Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to know if this is a good thing to do. I have many conditional tags for Wordpress pages and all of them are combined in 1 stylesheet, which is not bad, but I see that the front-page for example does not use 50% of the stylesheet. Is there any reason to use the whole stylesheet?

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

This approach (one general css) will make your first-load times longer, but when you browse other pages, if the css is cached, everything will be faster.

If you make your stylesheet smaller by splitting them up.. you might have a 'slightly faster' first-page load but every other page that uses another css will still be slower than using one generic css for all pages.

You can minify them if you want as what @JMa have said, you can use caching plugins or even a CDN like cloudflare if you want to make your site faster..

Here is a tool to check your page load times for free:

http://tools.pingdom.com/fpt/ or http://www.webpagetest.org/

share|improve this answer
    
Thanks man, this makes it clear. –  Johan Jul 30 '13 at 21:48
add comment

To get a better performance it's often recommanded to use only one stylesheet simply because it's just 1 request to the server. This is what a minify plugin does, it combines stylesheets.

share|improve this answer
    
Thanks man! That's clear now. –  Johan Jul 30 '13 at 21:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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