CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 30th, 2003, 03:48 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
external CSS file too large?

hi

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,

jim

Reply With Quote
  #2  
Old October 30th, 2003, 05:28 AM
Winters Winters is offline
Bad Coder
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2003
Posts: 1,744 Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 12 h 3 m 32 sec
Reputation Power: 171
Ignore it. Try to cascade your CSS code.

Reply With Quote
  #3  
Old October 30th, 2003, 05:33 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
thanks PHP-Newb

when you say i should cascade my CSS - what do you mean?

cheers,

jim

Reply With Quote
  #4  
Old October 30th, 2003, 06:51 AM
Winters Winters is offline
Bad Coder
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2003
Posts: 1,744 Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 12 h 3 m 32 sec
Reputation Power: 171
Well, for example, if you had this in your CSS file:

a {text-decoration:none;font-size:19pt;color:blue;}

a:hover {text-decoration:none;font-size:19pt;color:red;}



You would be better to do this:

a,a:hover {text-decoration:none;font-size:19pt;}

a {color:blue;}

a:hover {color:red;}


Try and re-use as much as you can, it saves on loading time and is just a good habit to get in to.

Reply With Quote
  #5  
Old October 30th, 2003, 07:32 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
oh... ok thanks

jim

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > external CSS file too large?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway