var ScriptLoader = { worker: , isWait: false, readyQueue: [], callback: [], timer: null, wait: function () { if (!this._isComplateTask()) { this.isWait = true; this.readyQueue.unshift('wait'); } //console.log('wait is true'); return this; }, _isCompl…