RsD0p9BK
1/21/2014 - 5:53 AM

Load multiple js files using $.getScript() http://stackoverflow.com/questions/11803215/how-to-include-multiple-js-files-using-jquery-getscr

$.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

});