Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-02-2011, 10:41 PM   PM User | #1
cineweekly.com
Regular Coder

 
cineweekly.com's Avatar
 
Join Date: Aug 2010
Posts: 485
Thanks: 14
Thanked 3 Times in 3 Posts
cineweekly.com can only hope to improve
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?
__________________
¿¿¿ curious ???
cineweekly.com is offline   Reply With Quote
Old 08-03-2011, 01:38 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,697
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 08-03-2011, 01:41 AM   PM User | #3
cineweekly.com
Regular Coder

 
cineweekly.com's Avatar
 
Join Date: Aug 2010
Posts: 485
Thanks: 14
Thanked 3 Times in 3 Posts
cineweekly.com can only hope to improve
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.
__________________
¿¿¿ curious ???
cineweekly.com is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:23 AM.


Advertisement
Log in to turn off these ads.