Home › Forums › JavaScript › Delay function call › Reply To: Delay function call
June 2, 2016 at 11:04 am
#242383
I.m.learning
Participant
Do you have a link or a pen to provide your code?
There are multiple ways to do what you’re asking. Do you want an event handler?
From what I understand, .$getScript
can use a callback (which looks to be what you’re doing); so you can use just a callback function. instead. A callback function can be set to run after the other scripts have completely loaded.
If you want to stick with the $.getScript
, you can try this:
$.getScript("manualEntryCalculations.js').done(function () {
yourFunctionHere();
});