Dynamic Loading of js files is a new feature of ext4.x, which can effectively reduce the pressure on the browser and improve the rendering speed. Such as dynamic loading of custom components 1. create a js file for custom components under the js/extjs/ux directory. 2. compile MyWindow. js file copy code Ext. define ('js. extjs. ux. mywindow'/* name must correspond to path */, {extend: 'ext. window. window ', title: 'dynamically loaded components', width: 400, height: 300, bodyStyle: 'background: # ffc; padding: 10px;', html: 'Hello, world '}); copy code 3. start ext's dynamic loading mechanism and set the path to be loaded Ext. loader. setConfig ({enabled: true, paths: {'myux ': 'js/extjs/ux'}); 4. create Ext. create ('js. extjs. ux. myWind Ow '). show (); 5. finished 6. Note that the js file is loaded only when the node is instantiated in step 1, instead of step 2.