View Full Version : When does a CSS stylesheet become too long?
08-02-2011, 11:41 PM
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?
08-03-2011, 02:38 AM
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.
08-03-2011, 02:41 AM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.