i try to do the following but it doesn't work on IE11 in my case?
var request = new XMLHttpRequest();
function doStuff()
{
console.log("next request");
doRequest();
}
function doRequest() {
request.open("GET","http://127.0.0.1/poll.php", true);
request.onloadend = doStuff;
request.send();
}
doRequest();
The PHP script poll.php is sleeping for one second. Now the Point: The Egde and Chrome are requesting round about once per second but the IE doesen't, it spams the log with 1000 requests per second AND they dont even got execute.
If i remove the endless Loop, the IE is doing one request, if it is a endless Loop, the IE is doing nothing except spamming the log.
Hope u can unterstand me and give me a hint, how to solve my Problem.
Best Regards.