Resource Minification

You are viewing an old version (v. 2) of this page.
The latest version is v. 5, last edited on Nov 21, 2014 (view differences | )
<< View previous version | view page history | view next version >>


Since 3.1

In production systems it's desirable to reduce network bandwidth usage and browser memory consumption by delivering minified versions of the JavaScript and CSS resources provided by ICEfaces. Delivery of minified or original (suitable for debugging) resources for the ICEfaces framework and components is possible.

About Minification
"Minification" refers to the process of removing unnecessary or redundant data without affecting how the resource is processed by the browser - e.g. code comments and formatting, removing whitespace and unused code, using shorter variable and function names, and so on.

Configuring Minification

Delivery of either minified or original/debug resources is determined via the JSF "PROJECT_STAGE" configuration parameter:

  • When "PROJECT_STAGE=Production" (default) minified CSS and JavaScript resources are served by the framework.
  • When "PROJECT_STAGE=Development" the original un-minified CSS and JavaScript resources are served by the framework.

The "PROJECT_STAGE" configuration parameter can be set in the application web.xml file as follows:

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2017 ICEsoft Technologies Canada Corp.