diff --git a/src/ajax.js b/src/ajax.js index dc1f8ecb6a8..ac6f08c09ca 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -46,7 +46,6 @@ export function ajax(url, callback, data, options = {}) { } } - x.timeout = _timeout; if (useXDomainRequest) { x = new window.XDomainRequest(); x.onload = function () { @@ -83,6 +82,8 @@ export function ajax(url, callback, data, options = {}) { } x.open(method, url); + // IE needs timoeut to be set after open - see #1410 + x.timeout = _timeout; if (!useXDomainRequest) { if (options.withCredentials) {