Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Delay function call Reply To: Delay function call

#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();
});