October 30th, 2003, 03:48 AM
external CSS file too large?
i just wanted to get some opinions on this...
running a page through www.weboptimization.com's test brought the following message
CSS_SIZE - Caution. The total size of your external CSS is 4399 bytes, which is above 1160 bytes and less than 8K. For external files, try to keep them less than 1160 bytes to fit within one higher-speed TCP-IP packet (or an approximate multiple thereof). Consider optimizing your CSS and eliminating features to reduce this to a more reasonable size.
How important is this and should I consider splitting the CSS file into, say, 4 smaller files or would that be as bad (or worse even)?
Thanks for your thoughts,
October 30th, 2003, 05:28 AM
Ignore it. Try to cascade your CSS code.
October 30th, 2003, 05:33 AM
when you say i should cascade my CSS - what do you mean?
October 30th, 2003, 06:51 AM
Well, for example, if you had this in your CSS file:
You would be better to do this:
Try and re-use as much as you can, it saves on loading time and is just a good habit to get in to.
October 30th, 2003, 07:32 AM