Java Html Compressor, just add filter "org.cweili.htmlcompressor.HtmlCompressorFilter" to your web application.