jeanluca
26 Apr 2012, 6:15 AM
Hello
I've created a ST app using 'sencha generate app GS ../GS'
All works very well, but the issue I have now is that every file from sdk/src is loaded.
What do I have to do to only load these files which are actually used ?
Maybe it can help, here is my app.js file
Ext.Loader.setPath({
'Ext': 'sdk/src'
});
Ext.application({
name: 'GS',
requires: [ 'Ext.MessageBox' ],
views: ['Main', 'PullMenuView', 'MenuVertical', 'MenuHorizontal'],
launch: function() {
// Destroy the #appLoadingIndicator element
Ext.fly('appLoadingIndicator').destroy();
// Initialize the main view
Ext.Viewport.add(Ext.create('GS.view.Main'));
},
onUpdated: function() { }
});
I've created a ST app using 'sencha generate app GS ../GS'
All works very well, but the issue I have now is that every file from sdk/src is loaded.
What do I have to do to only load these files which are actually used ?
Maybe it can help, here is my app.js file
Ext.Loader.setPath({
'Ext': 'sdk/src'
});
Ext.application({
name: 'GS',
requires: [ 'Ext.MessageBox' ],
views: ['Main', 'PullMenuView', 'MenuVertical', 'MenuHorizontal'],
launch: function() {
// Destroy the #appLoadingIndicator element
Ext.fly('appLoadingIndicator').destroy();
// Initialize the main view
Ext.Viewport.add(Ext.create('GS.view.Main'));
},
onUpdated: function() { }
});