Merging 10 CSS Files

Discussion in 'CSS' started by MarkusBerger, Nov 28, 2009.

  1. #1
    Hello,

    would it, in general, have an effect on the loading time if I merge 10 CSS files to 1?

    Thanks,
    Markus
     
    MarkusBerger, Nov 28, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    It would have only a trivial effect on loading time, as they would all be cached, not to be downloaded again.

    Where it would have an enormous effect is in maintenance and debugging. One well organized stylesheet is a lot more amenable to updating and applying fixes. It may be a royal PITA to affect the mind meld if it comes from some generic cms, à la Wordpress. Joomla, etc..

    cheers,

    gary
     
    kk5st, Nov 28, 2009 IP
  3. taminder

    taminder Peon

    Messages:
    581
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I suggest only using different CSS files if you don't use everything in the CSS file for every page. That way you only need to load it if you use it.
     
    taminder, Dec 1, 2009 IP
  4. mikestrand

    mikestrand Active Member

    Messages:
    237
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #4
    loading ten rather one of any file type is extremely benficial on larger sites that are concerned with the amount of http requests but like taminder can't see any reason for 10 css stylesheets to be loaded on one page if they are not needed.
     
    mikestrand, Dec 3, 2009 IP