jQuery async attend $ .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();
});