title: Website loses performance after some jQuery $.ajax calls
body: <p>I admit I'm quite noob with full ajax websites, and so I'm surely making some mistakes.</p>
  
  <p>The problem is this:
  in <a href="http://lamovida.arabianessence.com" rel="nofollow">http://lamovida.arabianessence.com</a></p>
  
  <p>every page is loaded with an $.ajax call using this function</p>
  
  <pre><code>function getAjaxPage() {
    $('a.ajaxc').click(function() {
  $("li.page_block").find(".wrapper").fadeOut(400).remove();
    hideSplash();
    var $thishref = $(this).attr('href'),
        $thisurl = $thishref.replace("#!/",""),
        $urlArr = $thisurl.split('-'),
        $urlOk = $urlArr[0],
        $dataOk = $urlArr[1];
  
        $.ajax({
          url : $urlOk + ".php",
      data :  'id='+$dataOk,
      success : function (data,stato) {
        $("#content").css({opacity:1}).fadeIn(400);
        $("li.page_block").html(data);
        $("li.page_block").css('visibility', 'visible');
        $("li.page_block").find(".wrapper").css({opacity:0}).show().animate({opacity:1},1000);
  
                  var $whgt = $(".wrapper").height(),
                      $ctop = ( ( $(window).height() - $whgt ) /2 )-40;
  
                  $("#content").stop().animate({height: $whgt+40, top: $ctop},1000);
                  $("li.page_block").css('padding-top',20);
  
                  $('.scrollable').jScrollPane();
                  $('.slider&gt;ul&gt;li').jScrollPane();
  
                  getAjaxPage();
              },
              error : function (richiesta,stato,errori) {                     
                  alert(errori);
              }
          });
    });
  }
  </code></pre>
  
  <p>Every time this function is called the content gets loader slower, and after about 20 clicks things get real bad, and the loading time grows and grows.</p>
  
  <p>I tried to analyze the situation using the Google Chrome's Timeline, and I saw that after each click the browser uses more memory. If I comment the getAjaxPage(); row in the "success" section the situation starts to get better, but of course I lose all the internal navigation.</p>
  
  <p>What could I do to avoid this problem?</p>
  
  <p>Many thanks to all!</p>