Resource Minification

Table of Contents


Since 3.1

In production systems it is 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 supported.

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 2021 ICEsoft Technologies Canada Corp.