JSFiddle - React, Tailwind, and code Playground

JavaScript

loadScripts();


function loadScripts() {
      getBootStrapperScript(function (callback) {            
          bootStrapper();
      })
          
      getXMLScript(function (callback) {       
          alert('xml script loaded');
      });
    
      getFormScript(function (callback) {       
          alert('form script loaded');
      });       
}

function getBootStrapperScript(callback) {
    $.ajax({
       url: "http://localhost/eSales/scripts/bootStrapper.js",
       dataType: "script"
   }).done(callback);
 
}

function getXMLScript(callback) {
    $.ajax({
       url: "http://localhost/eSales/scripts/LoadXML.js",
       dataType: "script"
    }).done(callback);
}

function getFormScript(callback) {
    $.ajax({
       url: "http://localhost/eSales/scripts/LoadForm.js",
       dataType: "script"  
    }).done(callback);
}


function bootStrapper() {        
       alert('in bootstrapper');         
}