61
rated 0 times
[
66]
[
5]
/ answers: 1 / hits: 25936
/ 6 Years ago, mon, january 15, 2018, 12:00:00
I see this error: [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/., on this code:
var request;
if(window.XMLHttpRequest){
request = new XMLHttpRequest();
}else{
request = new ActiveXObject(Microsoft.XMLHTTP);
}
request.open('GET', 'http://www.mywebsite.com', false);
request.send();
What should I replace the instructions with because they are deprecated?
More From » html