JSFiddle - React, Tailwind, and code Playground

HTML

<div id='c-1'>Loading...</div>

JavaScript

function do_something(num){
    // Create a function that simulates processing time and DOM manipulation
    var html = "<b>test</b>";
    var i = 0;
    while(i < num){ 
        $('#c-1').append(html);
        i++;
    }
   $('body').append(new Date().getTime() + "<br />");
}

function process1(){
    do_something(10);
}

function process2(){
    do_something(100);
}

function process3(){
    do_something(1000);
}

function run_last(){
    $('body').append('run_last()<br />');           
}

$(function(){
   $.when(
       $.get('/', process1), 
       $.get('/', process2), 
       $.get('/', process3))
    .then($.get('/echo/html', run_last))
});