This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Load scripts in parallel keeping execution order. | |
* @param {array} An array of script urls. They will parsed in the order of the array. | |
* @returns {$.Deferred} | |
*/ | |
function getScripts(scripts) { | |
var xhrs = scripts.map(function(url) { | |
return $.ajax({ | |
url: url, | |
dataType: 'text', |