Skip to content

Commit

Permalink
Explicitly set ajax() XHR to asynchronous. (#3038)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkharton authored and jaiminpanchal27 committed Sep 4, 2018
1 parent ce3fe7d commit ba5ea0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function ajaxBuilder(timeout = 3000, {request, done} = {}) {
url = formatURL(urlInfo);
}

x.open(method, url);
x.open(method, url, true);
// IE needs timoeut to be set after open - see #1410
// Disabled timeout temporarily to avoid xhr failed requests. https://github.com/prebid/Prebid.js/issues/2648
if (!config.getConfig('disableAjaxTimeout')) {
Expand Down

0 comments on commit ba5ea0a

Please sign in to comment.