-
Notifications
You must be signed in to change notification settings - Fork 0
Using the Standalone Jetty Zazl Optimizer Server
If you don't have a JEE WebContainer available you can use the Standalone Jetty Server with Zazl Optimizer . Just give the name of a directory that you want to load from and reference the Zazl AMD loader. You can try it out with some examples :
-
Download Standalone Jetty Server with Zazl Optimizer and unzip
-
Download the examples, create an examples directory and unzip it into that.
-
Start the server :
java -jar server/lib/optimizerserver.jar examples
-
Try the two samples
http://localhost:8080/inject_amdcalendar.html
http://localhost:8080/inject_amddeclarative.html
-
You can use a different port to 8080 (the default) by passing the number as the 2nd parameter. e.g
java -jar server/lib/optimizerserver.jar examples 9080
-
You can turn off javascript compression (default is true) by passing a boolean as the 3rd parameter. e.g
java -jar server/lib/optimizerserver.jar examples 8080 false
-
Note The server caches optimization data to disk. Subsequent requests after server restart will be substantially faster
-
Note You can modify source code while the server is running and the optimizator will pick up the changes