jQuery async espera $ .getScript (
$.ajax({
url: 'js/myHelperFile.js',
async: false,
dataType: "script",
});
myHelperFunction();
Graceful Giraffe
$.ajax({
url: 'js/myHelperFile.js',
async: false,
dataType: "script",
});
myHelperFunction();
$.getScript('js/myHelperFile.js').done(function () {
myHelperFunction();
});