General Interface 3.2 introduced a new dynamic class loading feature to increase application performance and accelerate load time. Dynamic class loading causes classes to be loaded as they're needed at the last possible moment. Since only statically loaded classes are loaded at application initialization, the application loads much faster. For more information on dynamic class loading and a list of statically loaded General Interface classes, see Class Loading in General Interface. At General Interface application initialization, General Interface first loads a version of jsx.js appropriate for the host browser. The jsx.js file is located in a browser-specific directory, such as GI_HOME/JSX/js/fx, GI_HOME_/JSX/js/ie6, and GI_HOME/JSX/js/ie7. The jsx.js file contains the statically loaded framework classes, such as classes in the jsx3.lang package. After jsx.js is loaded, subsequent classes are loaded as needed using dynamic class loading. Dynamic class loading loads classes individually by loading the JavaScript files that define them. Because dynamic class loading is both synchronous and serial, loading multiple classes at the same time can degrade the performance of a General Interface application, especially when running over HTTP. The typical uses for dynamic class loading, such as loading the jsx3.gui.Matrix GUI class when a component file loads, almost ensure that degradation of performance will occur. Loading the jsx3.gui.Matrix class causes several classes to be loaded at the same time including jsx3.gui.Matrix.Column, jsx3.gui.Form, and several others. |
Contents
|
