Delay variable-assigned functions from running till other function done
I have a number of stacks on a page w/ their respective functions. I need to run my stack before the others, or put another way, pause the others till my stack is finished.
If this is an example of a variable assigned to a function for another stack that I want to pause.
- stacks.com_company_product1 = (function() {
- ... other stack function
- });
I tried using $.holdReady() to stop all other functions and then release it, but didn't really work.
Is there a way to pause those stacks, using their variable, and then run them once my stack is done?