PDA

View Full Version : CSS Compression



ConfusedCartman
05-21-2009, 03:48 AM
I've added a new system to the site that will compress our CSS file on the fly, resulting in much faster page loads for nearly everyone.

For those of you who don't know, CSS is the ying to HTML's yang - they work in correspondence in order to display the page correctly. However, CSS files are usually full of "comments" (notes by the developer of the code to better organize it) and plain white space, all of which takes longer for a browser to sort through in order to get to the relevant stuff. Our CSS compression removes all of that before sending the CSS file to you, leaving only the relevant code for your browser to sort though. The CSS file is about 75% smaller when compressed, meaning you should notice a significant decrease in load times.

tjb0607
05-21-2009, 04:12 AM
Weird... it just took 3x as long as usual to load a page... It could be my internet, though...

ConfusedCartman
05-21-2009, 04:20 AM
Weird... it just took 3x as long as usual to load a page... It could be my internet, though...
Hmm...keep testing and let me know if you have any further issues.

brnxblze
05-21-2009, 04:48 AM
It's loading WAY faster for me, thanks for that!

Silverleon
05-21-2009, 04:51 AM
Indeed, even in the PS3 browser the speed increase is quite noticable.
Nice!

brnxblze
05-21-2009, 05:00 AM
Not only do the pages load faster for me but so do the drop-down menus (I'm using my phone so it usually takes a while to load.) Very nice update!

ConfusedCartman
05-21-2009, 05:14 AM
Glad to hear it! I think I've finally solved the issues with the site's loading speed, so hopefully everyone can use the site on whatever browser they prefer without any further problems.

v0rtex
05-21-2009, 05:18 AM
Nice work, CC! Thank you!

Coxy224
05-21-2009, 05:47 AM
Nice addition. I may well use it when I'm not browsing on my laptop :)

ConfusedCartman
05-21-2009, 05:51 AM
Nice addition. I may well use it when I'm not browsing on my laptop :)
The CSS compression? That's default for everyone. Are you referring to the lite style? There's a thread for that here (http://www.lbpcentral.com/forums/showthread.php?t=11776).

dawesbr
05-21-2009, 06:14 AM
Very nice! My internet varies in speed every minute or so, so in those moments when it is lagging behind a bit, this should increase my posting prowess!

Morgana25
05-21-2009, 06:43 AM
It's always loaded pretty fast for me but it's faster now. Thanks CC!

Zwollie
05-21-2009, 07:24 AM
You sir, must be one of the greatest admins out there!!

The things you changed for the better these last few weeks...

Walter-Kovacs
05-21-2009, 08:26 AM
Great work, I'm always impressed by the updates here.

Rhyfelwr
06-13-2009, 10:34 PM
I didn't realise css loads were that critical - aren't they cached fromthe first page load ?

I'll have to look at all my /*---*/ comments on my site!

I've looked at this site in IE7, Chrome and FF and all af them run really well apart from one small thing.

The thread title
's seem to shunt up about 20px, which means that it's having difficulty with this css definition. (only in IE7)-- it might be the margin-top:

The other thing I've noticed is that although the html is loading fast, some of the SQL queries do take a second or two to extract from the MySQL database.. not too much of a problem though as there are obviously loads of php functions running in one page load.

Apart from that, I love the customisation of this forum engine - great job and well moderated!!

ConfusedCartman
06-14-2009, 04:40 AM
I didn't realise css loads were that critical - aren't they cached fromthe first page load ?
vBulletin automatically generates a new CSS file every 10 minutes or so in order to account for any changes made in the administrator panel (along with ensuring the CSS file is never named the same thing, for security purposes).

KoRnDawwg
06-14-2009, 01:23 PM
Awesome, a lot faster, even on Internet Explorer (God forbid). Great job.