Is there a JQuery way to execute a custom function 'after' another custom function is executed? The second function must wait until the first one has finished. (Not asynchronous but synchronous) Important: I don't want place the call to the second function in the first one.
for example: doSomething1(); doSomething2(); function doSomething1() { } function doSomething2() { }