Donnerstag, 13. Juni 2013

Make ADF a little bit faster

No. We don't make ADF faster :-)
But we make it seem like it is a little bit faster.

At the moment I work for a customer who is using WCP for his Internet-Presence. At the beginning of the project we discussed about the size of the ADF Javascript library and that this might be a big problem for people with a 56K webaccess.

One workaround for this problem is using the Apache mod_deflate which can compress the Javascript and CSS files before sending them to the client.

You need an Apache and enable the mode_deflate module.
And what I did for testing was this simple configuration. The red line is for mod_deflate.


<Location /portal>
   AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
    WebLogicHost localhost
    WebLogicPort 7101
    SetHandler weblogic-handler
</Location>


I did make two screenshot of the Javascript Network Traffic which was captured by Firebug.
The first screenshot shows with no mod_deflate. 1MB of JS

The second screenshot shows with mod_deflate. 281KB of JS

The problem is that mod_deflate is not working with all browsers. For Internet applications this is not good. That is why we have to make an advanced mod_deflate configuration which tells the apache not to use mod_deflate if the client is IE6.

For further information on mod_deflate I found a nice blog
http://www.g-loaded.eu/2008/05/10/use-mod_deflate-to-compress-web-content-delivered-by-apache/