|
| |
|
|
kt
Posts: 195 Joined: 11/3/2004 Status: offline
|
size of css file - does it matter? - 6/13/2005 16:35:00
Hi all Does the size of my css file make any difference to the pageload time? i.e. if my css is 300 lines long, will it take longer than if it's 50 lines long? thanks, kt
|
|
|
|
dpf
Posts: 7126 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: size of css file - does it matter? - 6/13/2005 16:50:36
yes it will take longer but - it shouldnt mean a thing since it is only text - it should make an insignificant difference in download times - and remember, if multiple pages link to it, it is only downloaded once.
_____________________________
Dan
|
|
|
|
kt
Posts: 195 Joined: 11/3/2004 Status: offline
|
RE: size of css file - does it matter? - 6/15/2005 17:30:40
thanks dan kt
|
|
|
|
Tailslide
Posts: 6267 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: size of css file - does it matter? - 6/16/2005 2:57:34
Hi KT If you're really worried then you can optimise the CSS a bit (if you haven't already). so this: #div1
{background-color: #ffffff;
color: #666666;
} Becomes this: #div 1 {background-color: #fff; color: #666;} It can help reduce the overall file size although it can make it harder to read so inserting CSS comments and or making sure you put related stuff together can help a lot.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
kt
Posts: 195 Joined: 11/3/2004 Status: offline
|
RE: size of css file - does it matter? - 6/19/2005 11:04:48
thanks tailslide - will see what I can do. kt
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|