JQuery include an HTML file and its fade out?

JQuery include an HTML file and its fade out?

Hello guys...!

I'm a bit curious. how could we include an HTML file from jquery?

Let's assume this story;
Page 1: 
Has a link (once clicked it will execute something)
Has a div (extracted from what it read from step above)

Page 2:
Only containing some Html elements
Such as Table only.

Page 3:
Only cointaining some image elements
Showing loading Gif file.

The SOMETHING that I mentioned are these;
1) Read Page 3 content to show the loading gif into the div.
2) After couple seconds, then The loading img Fade out.
3) Read Page 2 content to show it into the div

How could I achieve this in Jquery? 
Seems I need to have a different THREAD if It's in Java language. 
But jquery seems asynchronious when I tried to put this line of code.

  1. $('#supplier').click(function(event){
  2.         // request form
  3.         $('#middle').load('form/loading.html').fadeIn(1000);
  4.         $('#middle').fadeOut(1000);
  5.         $('#middle').load('form/supplier.html');
  6.         event.preventDefault();
  7.     });

THe result I got here is that the supplier.html is getting rendered so fast.
So then the loading.html is not even shown yet. How come?


Is there anything I forgot?