JSFiddle - React, Tailwind, and code Playground
JavaScript
function doGet(url) {
return $.post(url, {
html: url
})/*.then(data => data).fail(function() {
console.log('oups');
})*/;
}
$.when(doGet('/echo/html/'), doGet('/echo/html/')).done(function(u1, u2) {
console.log(u1, u2);
});