I got the following code:
$('#some_object_id').hide();
$('div#some_version_div').hide();
$('#some_another_object_id').show();
someFunction();
I want to issue my someFunction() only after the last of these 3 finishes its action. The problem is that from time to time they finish in different order (ie now the last may be the second, the other time the first one etc.) Now someFunction() fires without waiting for these 3 to finish. Any ideas how to fix it? Thank you.
show()orhide(), so their effects should be immediate. So it seems to me the order should be reliable and the effects instantaneous.null! -- The docs go on to say "When a duration, a plain object, or a "complete" function is provided, .hide() becomes an animation method. " meaning it will take on the default speed of 400ms of not set.