Callbacks are probably not what you want, since your animation will be "queued", having one after the other.
This probably becomes volatile because you go on too much ... javascript css animation is not particularly fast and heavily browser dependent due to differences in javascript machines. If you are looking for smoother animations, I would suggest adding and removing classes that use CSS transitions, since CSS is hardware accelerated and does not take up the precious javascript resource, allowing the rest of your application to run much smoother.
As a side note, you don’t need to update the div every time using the var keyword, and you can animate several properties by comma, separating your object properties and binding your jQuery methods so you don’t need to re-query the DOM, for example:
$(".navHome").click(function(){ $(this).animate({left:'190px'},"fast"); $(".content").animate({width:'700px', height:'250px'},"slow") .load("home.html"); $(".xIcon").animate({width:'20px', height:'20px'},"slow"); });
ahren source share