[ANN] mod_concat

Posted by Ian Holsman Tue, 03 Jul 2007 18:37:00 GMT

I’ve just created a new module for the apache webserver 2.2 which implements one of Brad’s features of perlbal.

The ability to concatenate CSS or javascript files into a single HTTP request.

the request will look like: http://hostname/cdn/??music2.js,mp.js,dir1/dalai_llama.js,ratings_widget.js,widget_config.js,common.js

my initial testing shows a performance gain of about 1 second when I request a file from the other side of the pacific ocean.

you can try it out yourself: with concat / without concat

The multiple host names reflect the original page going to multiple hosts to retrieve the files (which are on multiple CDNs)

firebug shows the following:

from

to

code is hosted on: googlecode

Posted in  | Tags  | 2 comments

Comments

  1. Avatar David Davis said 5 days later:

    BTW, I wrote the concat plugin for perlbal, not Brad. I came up with the idea while working on Vox.

  2. Avatar Ian said 5 days later:

    Sorry David.. I’ll adjust the credits.

Comments are disabled