Resource Minification

Version 1 by Ken Fyten
on Nov 21, 2014 11:31.

compared with
Version 2 by Ken Fyten
on Nov 21, 2014 11:32.

These lines were removed. This word was removed.
These lines were added. This word was added.

View page history

There are 1 changes. View first change.

 h2. Overview
  _Since 3.3_
  _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.
 {info:title=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.{info}
 h3. 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:
 {code:xml} <context-param>

© Copyright 2017 ICEsoft Technologies Canada Corp.