80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scripts, etc. Reducing the number of components in turn reduces the number of HTTP requests required to render the page. This is the key to faster pages.
Combined files are a way to reduce the number of HTTP requests by combining all scripts into a single script, and similarly combining all CSS into a single stylesheet. Combining files is more challenging when the scripts and stylesheets vary from page to page, but making this part of your release process improves response times.
Configure your project's
pom.xmlto run the plugin during the project's build cycle.
com.samaxes.maven minify-maven-plugin 1.7.6 default-minify UTF-8 file-1.css file-n.css file-1.js file-n.js CLOSURE minify
This distribution is licensed under the terms of the Apache License, Version 2.0 (see LICENSE.txt).