jQuery, Wait for another function
<p>I'm rather new to jQuery and have a quick question.</p>

<p>I have two jQuery functions which both seems to start onload, but I want to delay the one function until the first function has completed:</p>

<pre><code>$(document).ready(function() {
//DO SOME AJAX STUFF HERE AND CALL FUNCTION TWO BELOW WHEN DONE
});

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({            
        itemLoadCallback: { onBeforeAnimation: mycarousel_itemLoadCallback }
    });
});
</code></pre>
