The Source for Java Technology Collaboration
User: Password:
Register | Login help    

Search

Online Books:
java.net on MarkMail:


Automatic compression of jsf.js

Posted by driscoll on July 3, 2009 at 10:45 AM PDT
Just a quick note that we've now added automatic compression of the jsf.js file served by JSF 2. The file size of jsf.js, 71k uncompressed, comes to about 16k compressed (there are a lot of comments in there).

There is no user action required to make this happen: If the Project stage is Development, the file is served uncompressed (for ease in debugging with something like Firebug), but if the Project stage is anything else, then the file is compressed (and essentially unreadable, since besides stripping all comments, variable names are stripped, as well as all line breaks).

To enable Project Stage as Development, place the following in your web.xml file:

    <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
    </context-param>
Related Topics >> Web Applications      
Comments
Comments are listed in date ascending order (oldest first)

Fantastic, i really waiting for a decent IDE to start my jsf2 project :(