Preparing for deployment
So far, we have seen how to architect our JavaScript code, created classes and layers for specific tasks, and written maintainable and scalable code; but we need to prepare our application for a production environment.
In Chapter 2, The Core Concepts, we talked about the loader system in Ext 4, and you learned that classes have dependencies, and these dependent classes can be loaded automatically when requiring the main class.
In Chapter 10, Architecture, we created a basic application skeleton and also most of our application. So far in this chapter, our application is in the development environment, and also this environment made sure that Ext JS classes (also our own classes) were dynamically loaded when the application required to use them. In this environment, it's really helpful to load each class in a separate file. This will allow us to debug the code easily, and find and fix bugs.
In Chapter 11, The Look and Feel, and Chapter 12, Responsive Configurations...