diff options
-rw-r--r-- | itjs/loader.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/itjs/loader.js b/itjs/loader.js index 2089679..f51680f 100644 --- a/itjs/loader.js +++ b/itjs/loader.js @@ -106,13 +106,14 @@ load: function(baseurl, pos, num, query_volatile, retry) catch (e) { } } + this.starttime = new Date().getTime(); + this.retry = retry; + if (this.loader) { if (this.method == "POST") this.loader.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - this.starttime = new Date().getTime(); - this.retry = retry; this.loader.send(this.post_data); } else @@ -129,7 +130,7 @@ load: function(baseurl, pos, num, query_volatile, retry) this.scrpt = document.createElement("script"); it_loader['__inst'+this.instance] = this; - this.loader = { starttime: new Date().getTime(), retry: retry }; + this.loader = { starttime: this.starttime, retry: retry }; try { this.scrpt.src = req_url; |