Skip to content

Getting Started with the AMD Optimizer

rbackhouse edited this page Nov 9, 2012 · 14 revisions

Getting Started with the AMD Optimizer

The AMD Optimizer can be used to optimize applications that use AMD for their loader architecture. It can optimize Dojo 1.7.x based applications and jQuery 1.7.x based applications.

Here is a quick start to trying out the optimizer. There are 3 options available to try

  1. Standalone Jetty Zazl Optimizer Server
  2. NodeJS Zazl Optimizer
  3. If you have an available JEE WebContainer that supports Servlet 2.5 or greater such as Jetty or Apache Tomcat you can download the two sample WAR files (inject_amdsamples.war and filter_amdsamples.war) and see working demos. Install them into your JEE WebContainer

You can try the samples demonstrating Direct Injection :

http://[host]:[port]/inject_amdsamples/inject_amdcalendar.html
http://[host]:[port]/inject_amdsamples/inject_amdcalendar-with-main.html
http://[host]:[port]/inject_amdsamples/inject_amddeclarative.html

You can try the samples demonstrating the HTML Filter applied to HTML resources :

http://[host]:[port]/filter_amdsamples/filter_amdcalendar.html
http://[host]:[port]/filter_amdsamples/filter_amdcalendar-with-main.html
http://[host]:[port]/filter_amdsamples/filter_amddeclarative.html

Alternatively you can try the two JSP samples:

http://[host]:[port]/filter_amdsamples/amdcalendar.jsp
http://[host]:[port]/filter_amdsamples/amddeclarative.jsp

The following Wiki pages provide additional information on more specific usage of the Zazl AMD Optimizer.

Configuring the AMD Optimizer Loader

JEE Web Application Setup

Using the AMD Optimizer via Direct Injection

Using the AMD Optimizer via the HTML Filter

Using the AMD Optimizer via JSP's

Using the AMD Optimizer with Dojo 1.7.x, 1.8.x

Using the AMD Optimizer with jQuery

Using the Standalone Jetty Zazl Optimizer Server

Using the NodeJS Zazl Optimizer

Getting Start via OSGi/Eclipse

Clone this wiki locally