JQuery fadeout small question

Hai falks,

i have a button in a page. when click, it should fade out slowly, then should go back to previous page.
with below code what happens is, it just go back immediately without fading out.
if i comment (//) the parent.hisotry.back line, then fadeout works perfectly. whats the problem?

<script>
  $("#back").click(function () {
  $("#print").fadeOut("slow");
  parent.history.back();
  return false;
  });
</script>

Look at the documentation page the .fadeOut() and you’ll see that it also accepts a callback parameter, which is a function that gets run only after the fadeout has finished occurring.