PDA

View Full Version : app loads all sdk javascript files



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() { }
});

mitchellsimoens
28 Apr 2012, 4:28 AM
What sencha touch lib file are you using?

jeanluca
29 Apr 2012, 3:34 AM
Ext.tab.Panel, Ext.TitleBar

Thats it, this project can be downloaded from here (https://github.com/scaljeri/pull-menu)