jquery getScript async code example
Example 1: jquery async await $.getScript(
$.getScript('js/myHelperFile.js').done(function () {
myHelperFunction();
});
Example 2: jquery async await $.getScript(
$.ajax({
url: 'js/myHelperFile.js',
async: false,
dataType: "script",
});
myHelperFunction();