jQuery part does not get executed sequentially

jQuery part does not get executed sequentially

When I click a button the following code snipped is executet:

$('#info').append("Loading..");
aMethodWithMightTakeSomeTime();

Now the first statement gets executed, when the second one is finished. Therefore the user gets informed when it's already over.

I tried the following to "postpone" the execution of the second statement without success:

setTimeout(aMethod...Time(), 50);

I can't think of a possibility to fix this. **

Thanks very much in advance.


** Footnote: I was surprised how difficult it is to put this problem into a "googleable" search term !