Forum Moderators: not2easy
I don't really put much effort into compacting my css files, alot of them are well formatted and i have a lot of comments to make things easier for people who may change the file later. If i thought it was an issue i would do something about it.
Nice thread, it's definitely something to think about.
Thank you,
Del
Also remember though, that a site-wide CSS file caches pretty nicely, so the overhead for subsequent pages is less.
Personally, I think I'd be happy with a 15-20KB CSS file. That's about 1000+ lines with comments and CR's - so could be optimised.
If the target audience includes 56k users, then I might worry about a large collection of CSS files. For the most part it's not a issue for me. Most of my files are under 20kb.
I really liked the idea that everything would be controlled by one universal style sheet, but as I took into account variations in layout, etc., I noticed my file was getting bigger and bigger. Thanks to all your comments, I think I jumped the gun! My file is only 4k.
I think I’ll add some more ;)
Cienwen