added ability to load a couple scripts after one main is loaded in any position in anyLoadOnLoad function

This commit is contained in:
coderaiser 2012-11-26 07:28:02 -05:00
parent 633f8535bc
commit f8bb8c0440
3 changed files with 40 additions and 35 deletions

View file

@ -29,18 +29,17 @@ var CloudCommander, Util, DOM, $, Github, cb;
console.time('github load');
var lDir = './lib/client/storage/github/';
DOM.jsload(lDir + 'github.js', function(){
DOM.anyLoadOnLoad([
lDir + 'lib/base64.js',
lDir + 'lib/underscore.js'],
function(){
console.timeEnd('github load');
DOM.Images.hideLoad();
Util.exec(pCallBack);
});
});
DOM.anyLoadInParallel([
lDir + 'github.js',
lDir + 'lib/base64.js',
lDir + 'lib/underscore.js'],
function(){
console.timeEnd('github load');
DOM.Images.hideLoad();
Util.exec(pCallBack);
});
}
function setConfig(pCallBack){