What is the best practice to carry out following workflow:
$("#myDiv").hide();
$.getJSON("url", function(data) { ... snorrr ... hours later ... });
$("#myDiv").slideDown();
This above mentioned sequence slides the div long befor hours have passed 🙁
Thanks
Er
Just put the call in the callback.
In addition you might want to show some indicator, so that the user knows that something is going on.