Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder cineweekly.com's Avatar
    Join Date
    Aug 2010
    Posts
    485
    Thanks
    14
    Thanked 3 Times in 3 Posts

    When does a CSS stylesheet become too long?

    I know the maximum is 64,000 characters but what is an optimum range before slowing down a site? I'm sure it all depends on the styles but there has to be a healthy range. I'm currently working with 12,410 characters (before minimizing) and 120 styles. Should I try to break it up into additional stylesheets for pages that don't use every style?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,728
    Thanks
    6
    Thanked 1,015 Times in 988 Posts
    I’ve never heard of a character limit but you should rather look at the file size. If a stylesheet exceeds 20 or so kilobytes it’s probably better to split it.

  • #3
    Regular Coder cineweekly.com's Avatar
    Join Date
    Aug 2010
    Posts
    485
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by VIPStephan View Post
    I’ve never heard of a character limit but you should rather look at the file size. If a stylesheet exceeds 20 or so kilobytes it’s probably better to split it.
    Ah yeah, I forgot to include that, I'm only at 13kb. Apparently after 64k characters the styles just don't go into effect. I've read that a few places.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •