Load and execute javascript code SYNCHRONOUSLY - Stack Overflow
You can synchronize asynchronous operations among themselves; create a recursive function to represent a loop and call the next operation when previous finishes
You can synchronize asynchronous operations among themselves; create a recursive function to represent a loop and call the next operation when previous finishes