CSS File Size... too big?

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

Hi, this is really a dumb question, but I reli need 2 know this.
I have an external CSS stylesheet containing EVERYTHING for my WHOLE site.
It is nearing 10KB, and I guarantee it will double pretty soon.
Is this going to be fatal? or as it is a download-once file, will it be ok? Plz dont say remove whitespace, or comments, as when i program, I never put those in anyway.
It is literally as compact as a diamond.
Any info on this subject would be greatly appreciated, thanks in advance.

All the best news here: https://newsbotnet.com

calculator's picture

They have: 40 posts

Joined: Nov 2007

I've got one that is 19 Kb on a site and there is no problem loading it. Although the site is very large with loads of different sections requiring their own style.

Could I ask if you used css shorthand? Also did you use the least number of id's and names required?

On the 19Kb one I used to have #wrapper #left #subleft - where #subleft was enough. Off course sometimes it requires overwriting a precedent rule which needs the addition of selectors.

DarkLight's picture

He has: 287 posts

Joined: Oct 2007

Yes, I did. like if I wanted to style the menu, it would go like this:..

#lpanel_menu{
PROPERTIES
}

Problem is I have around 2 dozen of these, lol.
Its ok, i managed to shrink it to 6 KB, but it luks a prat and it is harder to edit, but that is just one of those things.
Thanks for the reply, very grateful. Smiling

All the best news here: https://newsbotnet.com

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.