瀏覽代碼

Fixes connection optimization for IE.

dev1
damencho 9 年之前
父節點
當前提交
d33442ef4a
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. 5
    1
      connection_optimization/external_connect.js

+ 5
- 1
connection_optimization/external_connect.js 查看文件

60
         }
60
         }
61
     };
61
     };
62
 
62
 
63
+    xhttp.open("GET", webserviceUrl, true);
64
+
65
+    // Fixes external connect for IE
66
+    // The timeout property may be set only after calling the open() method
67
+    // and before calling the send() method.
63
     xhttp.timeout = 3000;
68
     xhttp.timeout = 3000;
64
 
69
 
65
-    xhttp.open("GET", webserviceUrl, true);
66
     window.connectionTimes = {};
70
     window.connectionTimes = {};
67
     var now = window.connectionTimes["external_connect.sending"] =
71
     var now = window.connectionTimes["external_connect.sending"] =
68
         window.performance.now();
72
         window.performance.now();

Loading…
取消
儲存