Skip to main content

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:

Related Topics >>


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

Use JAWR :