JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://jquery-json.googlecode.com/files/jquery.json-2.2.min.js"></script>
JavaScript
(function (send) {
XMLHttpRequest.prototype.send = function () {
/* var rsc = this.onreadystatechange;
if (rsc) {
this.onreadystatechange = function () {
console.log('change');
return rsc.apply(this, arguments);
};
} */
this.addEventListener('readystatechange', function() {
console.log('readyState changed');
}, false);
send.apply(this, arguments);
};
})(XMLHttpRequest.prototype.send);
$.ajax({
url:"/echo/json/",
success:function(){
}
});