wro4j is a free and Open Source Java project which will help you to easily improve your web application page loading time. It can help you to keep your static resources (js & css) well organized, merge & minify them at run-time (using a simple filter) or build-time (using maven plugin) and has a dozen of features you may find useful when dealing with web resources.
In order to get started with wro4j, you have to follow only 3 simple steps.
<filter> <filter-name>WebResourceOptimizer</filter-name> <filter-class> ro.isdc.wro.http.WroFilter </filter-class> </filter> <filter-mapping> <filter-name>WebResourceOptimizer</filter-name> <url-pattern>/wro/*</url-pattern> </filter-mapping>
<groups xmlns="http://www.isdc.ro/wro"> <group name="all"> <css>/asset/*.css</css> <js>/asset/*.js</js> </group> </groups>
The documentation for this project is located on google code project page: http://code.google.com/p/wro4j/
Found a bug? Report it to the issue tracker: http://code.google.com/p/wro4j/issues/list
If you have any questions or suggestions, please feel free to post a comment to the discussion group: https://groups.google.com/forum/#!forum/wro4j
Follow me on tweeter.
This project is available under the Apache License, Version 2.0.