mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 00:50:59 +00:00
Improved download speed of js and css files
This commit is contained in:
parent
749bf4416d
commit
1e019376d2
8 changed files with 124 additions and 29 deletions
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue