JSFiddle - React, Tailwind, and code Playground
JavaScript
$.when(
$.getScript( "/mypath/myscript1.js" ),
$.getScript( "/mypath/myscript2.js" ),
$.getScript( "/mypath/myscript3.js" ),
$.Deferred(function( deferred ){
$( deferred.resolve );
})
).done(function(){
//place your code here, the scripts are all loaded
//You'll get an error in the console since the script files does'nt exists, but that shows that the browser tried loading them
});