Best way to load a page...AJAX

Best way to load a page...AJAX

I am new here, and I am reading the docs and getting some online tuts to work on my stuff. I've done a lot of stuff, but I have this simple doubt. Whats the best way to load a page dynamically?

I am trying to do this:

  1. $('#page2').click(function(){
  2. $.ajax({
  3. url:'page2.html',
  4. success: function(data){
  5. $('.content').html(data);
  6. }
  7. });
  8. });
And this: 
  1. $('.menu').click(function(){
  2. var ref = $(this).attr('href');
  3. $('#content').load(ref).fadeIn('normal');
  4. });
As you can see, I wanna let a default page with links and load pages inside the #content div.
It works, but it blinks or make flashes every click. So, I don't know if there's a better way to "include" the external pages. Sorry if this is much trivial...