Script Compression

When not in debug mode (debug init-param not set or set to false) DWR will automatically detect the Yahoo Compressor Jar and the Shrinksafe Jar in the classpath and use them for script compression if available.

You may also create and plugin in your own Compressor by implementing the org.directwebremoting.extend.Compressor interface and configuring your web.xml to use it:

It's also worth checking out JAWR which includes DWR integration. JAWR is a packaging and compressing library for serving JavaScript and CSS.