Resource Minification

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


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


Key
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.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.
  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 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>
  <param-name>javax.faces.PROJECT_STAGE</param-name>
  <param-value>Development</param-value>
  </context-param>{code}

© Copyright 2017 ICEsoft Technologies Canada Corp.