Save some bandwidth... ok. plz!

I was just wondering if u might wanna put all the CSS code in a seperate CSS file. Right not it’s embedded in every page, and downloads with each page view.

This file would be just 1.8KB (with the current CSS code we have), and will only be downloaded once per visit. So assuming we get an average of 50,000 visits a day (we get more right?) and that each visit brings approx. 5 hits, we get about 250,000 page views a day. So…

50,000 * 5 * 1.8 = 450,000KB = 439.45MB / day

or

439.45 * 30 = 13,183.6 MB / month

This is the amount of bandwidth that can potentially be saved assuming my traffic estimates are true. Plus, you would save all the time needed to edit all those vbulletin templates when u want to change say a font size of an element accross the site. What’s more? May be slightly faster page loading for our brothers and sisters behind dialup connections in Pakistan.

So all we need to do is put all the css in a seperate file and import it into the templates.

Sahi ya ghalat? :slight_smile:

Hope u like the idea,
Haydur.

P.S. Have had this idea for long, but was just being mighty lazy…

Oops. I forgot two things:[list=1][li]The reloading of the CSS file might actually not be needed for days, depending on when the user's browser cache loses the file. Days? Weeks? (Assuming only regular guppies.)
[/li]
[li]I forgot that vbulletin probably has just one header file for all the pages. If it does, then implementing this won't take more than 2.4 minutes.
[/li][/list=1]Ciao... :)

Hmmm

Save 14gig/month....let AC Sleep...Save 14gig/month....let AC Sleep...Save 14gig/month....let AC Sleep...Save 14gig/month....let AC Sleep...Save 14gig/month....let AC Sleep......let AC Sleep..let AC Sleep.. ... let AC Sleep..

:p

I think 14 gig is less than 1% of traffic the network generates. But it costs money....so maybe we'll fix it during next house keeping cycle.

14/GB applies only if my traffic and per/visitor pageview estimates are correct, which they can't be by looking at your rough figure of the total network traffic.

:)