Welcome to UPSU

 

 

 

 


Ramblings of a pixel-pushing, barely-sane Sabbatical officer and Meeja Whore

RSS


Bandwidth miserliness

It was pointed out a couple of days ago that we might be somewhat over-doing it with the amount of comments in our code, especially in our CSS files. I didn't realise just how much until I ran a little test using our new-fangled dynamic CSS thingy; comments make up around 16Kb in the 65Kb of css sent down for the homepage alone.

For a broadband user, that's a whole... one-third of a second to download. Ahh well, at least we're heading in the right direction ;o)

Because of this, we're trialling not sending any comments down, but this means if in the future we decide to use CSS hacks which make use of comment tags to hide code from non-compliant browsers, we're going to run into a whole world of CSS validation fun...

Another trick we're trying is sending the .css files in a compressed format - it's (supposed to be) completely transparent to the person browsing the website; our server asks your browser if it can handle compressed information, and either your browser can or can't - if it can't, the stylesheet is simply sent uncompressed, but if it can then the server packages the css file up on-the-fly and sends it down the wires to your browser, where it's decoded.

Despite the minimal benefit, it's still good that we're paying attention to these things, although I'm fairly certain there are many much more important things to be getting on with. Like answering the support emails I've been hoarding for far too long - oops!

/al - off to do some proper work now
Comments have been closed for this article


Welcome

Welcome to my online ramblings repository. As of Friday 16th March, I have been sentenced to serve an extra 18 months in Portsmouth as a Sabbatical officer at the Union. Until then, I have to get my degree and train up to be a Sabb while running UPSU.net

Calendar

« June 2006 »

sun mon tue wed thu fri sat
123
45678910
11121314151617
18192021222324
252627282930

about me

"Grumpy, geeky old grey-head"

'Ello! I'm Alex, and I'm one of the mysterious and slightly-shady figures know as "Sabbatical Officers" - my job title is something like Media Whore, and I divide my time equally between upsetting students, annoying staff members, tweaking the UP ... (read more).

my degree

BSc (Hons) eCommerce & Internet Systems (I got a Desmon)