General Interface is an open source project hosted by the Dojo Foundation

General Interface Load Performance Optimization Script

To improve load performance for your application, you can use the General Interface Load Performance Optimization script to create a custom General Interface build that's optimized for a particular General Interface application. The General Interface optimization script, GI_HOME/util/gi-merge.sh, copies classes that would normally be loaded with dynamic class loading into the jsx.js file, so the classes are pre-loaded before the application loads. Since browsers load single JavaScript files faster than they load several files serially, the initial load of a General Interface application can be improved by creating a custom build.

The General Interface Load Performance Optimization script is not included in the Enterprise Edition.

Deciding which classes to include in a custom General Interface build requires an iterative process. First, run the General Interface Load Performance Optimization script with one set of classes and test the performance of the application. Then run the optimization script again with another set of classes and compare the performance to the first run.

If you want to eliminate dynamic class loading, you should include every class that your application uses. Depending on how your application is structured, classes might be loaded that are only required by rare usage patterns. Therefore, the best solution might be to include only the classes needed to load the application to its first interactive state.

Contents

Searching General Interface Docs

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.