In the last section, we saw an example of how class source files can be automatically loaded into the application as and when they are needed. This is taken care of by the
Ext.Loader class, which analyzes the dependencies of each class defined and ensures every reliant class is loaded in via AJAX. For more details on how this relates to creating production builds, see the Creating our application with Sencha Cmd section of Chapter 1, Getting to Know Ext JS.
The following diagram shows the process of how a class is defined, starting with the
Ext.define method call, and how the
Loader class fits into this process:
The best way to ensure that all necessary classes have loaded ...