Style Sheets

  • Thread starter LoudMusic
  • 3 comments
  • 362 views
10,687
United States
Everywhere
I was just looking at some of your html the other day and realized that you have all the style sheets included in the html for each page (nearly as I can tell). They also appear to be the same for every page, or at least similar. If you were to create a style sheet file and just referance it from the html file, you'd save yourself nearly 1k for every page loaded. After a user downloads the style sheet file one time, when it's referanced it shouldn't be downloaded anymore. I know I'm loading about 50 bajillion pages myself, and I'm not here nearly as much as some. Something to think about.

I'm kind of weird about effeciency, so I look for stuff like that (:

~LoudMusic
 
Hey, that's a really good point! vB comes like that by default, and I never had really thought about creating a file. I'll work on it right now... :)
 
In case you're wondering why I never implemented a .css file, LoudMusic, I had second thoughts. Although it would make for smaller source, I prefer the ease of use (for me) to quickly edit the CSS properties directly from the Admin CP. :)
 
But you realise a CSS sheet won't save you that much time? we are talking mabe 10 lines of code here.

I would like to see a couple pages that have it and don't have it, and test the difference.
 
Back