JSFiddle - React, Tailwind, and code Playground

JavaScript

function multi_Ajax() {
    var data = {};
    var urls = ['http://fiddle.jshell.net', 'http://fiddle.jshell.net', 'http://fiddle.jshell.net'];

    //call init() after both the list of prayers and the word concordance index load
    $(document).ajaxStop(function() {
      $(this).unbind("ajaxStop"); //prevent running again when other calls finish
      console.log('all calls finished.');
    });

    for (var c = 0; c < urls.length; c += 1) {
        //data files
        $.ajax({
          url: urls[c],
          success: (function (c) {
              return function (d) {
                  console.log('loaded ' + urls[c]);
              };
          })(c)
        });
    }
}

multi_Ajax();