31 Aug 2011 9:01 PM #1
[RESOLVED] Extjs 4 loads almost 2.4 MB of data
I have created a login panel using Extjs 4 and its takes almost 1.5 minutes to download all the files.
When i checked in the firebug it shows that almost all the files are downloaded. How can i rectify this.. Here is the code I'm using
31 Aug 2011 9:07 PM #2
Are you trying to use dynamic loading in production? We strongly advise against that... instead you should use either ext-all.js (minified build) or look at section 3 of http://docs.sencha.com/ext-js/4-0/#!...etting_started for how to create a custom build tuned for your application
31 Aug 2011 9:52 PM #3
Thank you ed .. I have tried sencha SDK in ubuntu . but its showing 'sencha : Command not found'.
31 Aug 2011 10:04 PM #4
31 Aug 2011 10:27 PM #5
Yes. Its working now. I had to restart my system..
31 Aug 2011 10:33 PM #6
1 Sep 2011 11:24 PM #7
Loading Dependancies in Production Environments
Do components also benefit from the Loader as they are created? For example, if I create two xtypes (panel and a grid), and have require statements in their parent, as well as each component, are those loaded at creation?
I seem to remember this being the case, but not 100% sure. If so, depending on your requirements, that also seems fairly efficient.
Just a thought.
1 Sep 2011 11:29 PM #8
Not sure I fully understand the question, but in development mode it will synchronously load those dependencies at instantiation time if those classes are not already on the page. In production we turn that off by default because there it should be running on a production build