ober Posted June 15, 2009 Share Posted June 15, 2009 I'm just curious... I've always tried to keep my CSS file sizes to a minimum, like less than 6Kb. I've read that this can reduce the load time of the site. But I've been looking at how some other people do it and I'm seeing file sizes of 20Kb or more. Any thoughts on this? Quote Link to comment https://forums.phpfreaks.com/topic/162197-css-file-size/ Share on other sites More sharing options...
rhodesa Posted June 15, 2009 Share Posted June 15, 2009 While smaller is obviously faster, in today's high speed world I would consider 20Kb a perfectly normal file size. There are several other things you can do to speed up the load time of that file too...Content Management Networks, Compression, Caching, etc Quote Link to comment https://forums.phpfreaks.com/topic/162197-css-file-size/#findComment-855963 Share on other sites More sharing options...
MadTechie Posted June 15, 2009 Share Posted June 15, 2009 I use minify myself, and YSlow to check my pages EDIT: oh and gzip works well, and caching Quote Link to comment https://forums.phpfreaks.com/topic/162197-css-file-size/#findComment-855966 Share on other sites More sharing options...
Hybride Posted June 15, 2009 Share Posted June 15, 2009 A 20kb CSS file may be normal, but if you use heavy graphics or file formats elsewhere, then a smaller and clean CSS file is better. I try to keep mine to a minimal as well, so at least I don't have to worry about CSS clogging down my site. I think some users forget that all of the sizes add up eventually! Quote Link to comment https://forums.phpfreaks.com/topic/162197-css-file-size/#findComment-856302 Share on other sites More sharing options...
haku Posted June 15, 2009 Share Posted June 15, 2009 Filesizes do add up, but html requests are more damaging, so while going for compressed CSS files as recommended in this thread is a good idea, consolidating multiple CSS and image files into single files even more beneficial. Especially with images, as the single merged-image size often ends up being smaller than the sum of the smaller image sizes (which I believe is a result of the metadata attached to the images). Quote Link to comment https://forums.phpfreaks.com/topic/162197-css-file-size/#findComment-856318 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.