JSFiddle - React, Tailwind, and code Playground
by dmethvin
HTML
<a href="http://microsoft.com">leave</a>
JavaScript
function makeXHR(n) {
var xhr = new XMLHttpRequest();
xhr.open("post", "/echo/html/", true);
xhr.onload = function(){
document.body.appendChild(document.createTextNode(xhr.responseText));
}
xhr.send("html=Done"+n+"&delay="+n/3);
}
document.body.appendChild(document.createTextNode(" Started... "));
setTimeout(function(){
makeXHR(1);
makeXHR(2);
makeXHR(3);
makeXHR(4);
makeXHR(5);
makeXHR(6);
makeXHR(7);
makeXHR(8);
makeXHR(9);
makeXHR(10);
makeXHR(11);
makeXHR(12);
}, 5);