Improved download speed of js and css files

This commit is contained in:
coderaiser 2012-11-23 06:27:50 -05:00
parent 749bf4416d
commit 1e019376d2
8 changed files with 124 additions and 29 deletions

View file

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