JSFiddle - React, Tailwind, and code Playground
by ubershmekel
HTML
<div id="status"></div>
JavaScript
function appender(data) {
var text = document.createTextNode(Date.now() + ' ' + data.slice(0,100));
$('#status').append(text);
}
function busy() {
var start = Date.now();
while (Date.now() - start < 1000) {}
}
$(function () {
$.ajax({
url: 'http://fiddle.jshell.net/'
}).then(appender).then($.ajax({
url: 'http://fiddle.jshell.net/'
})).then(appender);
});