Can one replace xhr.onreadystatechange with xhr.onload for AJAX calls?
maybe you take a look at this one and a look at W3C: XMLHttpRequest it’s the same if your browser supports xhr.onload. Requires XMLHttpRequest 2) You can also write a wrapping function that emulates xhr.onload if it’s not present. (I think you need to override XMLHttpRequest.prototype.onload = function(args){//calling onreadystatechanges somehow}). If you only support modern … Read more