Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit fe4bac8

Browse files
committed
Fix IE8/IE9 bug that may cause hanging cross-domain requests.
See: http://stackoverflow.com/a/9928073/3949247
1 parent 0d667e2 commit fe4bac8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/system.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@
7777
xhr.onload = load;
7878
xhr.onerror = error;
7979
xhr.ontimeout = error;
80+
// IE8/IE9 bug may hang requests unless all properties are defined.
81+
// See: http://stackoverflow.com/a/9928073/3949247
82+
xhr.onprogress = function() {};
83+
xhr.timeout = 0;
8084
}
8185
function load() {
8286
fulfill(xhr.responseText);
@@ -286,4 +290,4 @@
286290
if (curScript.getAttribute('data-init'))
287291
window[curScript.getAttribute('data-init')]();
288292
}
289-
})();
293+
})();

0 commit comments

Comments
 (0)