Reputation: 34929
I saw in some ExtJs examples that they are only include ext.js
in the page and ExtJs resolve all dependencies via XHR request after loading app.js
, Lazy load. But I checked the debugger network and I found that ExtJs made ~250
XHR requests to resolve dependencies.
Making ~250 requests for loading an application doesn't seems a good solution. I want to know should I use ext.js
(Lazy loading) or ext-all.js
(No more requests) for production version?
Upvotes: 1
Views: 2948
Reputation: 23973
If there is not any really good reason NEVER lazy load on a productive system.
There can be some special cases where this makes sense but that should only be done for rarely used classes and not the whole ExtJS lib.
So the answer is that you should either use ext-all.js
or let the Sencha CMD Tool build you a app.js
which contains only required classes.
Upvotes: 3