View Full Version : Dynamically loading is too slow

16 Feb 2012, 1:14 AM
It is for 7 seconds to run the "account_manager" example. Is that normal?And how I write my app with ext-all.js. I try something like this but get a error: Uncaught TypeError: Cannot call method 'substring' of undefined
Ext.require(['Ext.container.Viewport', 'AM.view.user.List']);Ext.application({ name: 'AM', appFolder: 'app', launch: function() { new Ext.container.Viewport({ items: [{ xtype: 'userlist', layout: 'fit', title: 'Test' }] }); }});Thanks!!!

16 Feb 2012, 4:42 AM
I don't know about your error message, but it's expected that dynamically loading will be rather slow. It's really only intended for development purposes, to make coding and debugging easier. For any kind of production system, you'll want to use the Sencha SDK tools to build a non-dynamic, minified version of your app.