title: Ajax call VERY SLOW with PHP
body: <p>I'm using Ajax to load the content of another page in a div with Twitter Bootstrap tabs, but the ajax is taking too long to load the page.<br>
  Without Ajax page loads very fast!</p>
  
  <p>Page loaded in ajax call: 28.743376016617 ms<br>
  Page loaded without ajax: 0.00022506713867188 ms  </p>
  
  <p>This is a code of the ajax call:</p>
  
  <pre><code>    $(function() {
      $("#MainTabs").tab();
      $("#MainTabs").bind("show", function(e) {
        var contentID  = $(e.target).attr("data-target");
        var contentURL = $(e.target).attr("href");
  
        if (typeof(contentURL) != 'undefined')
  
      $(contentID).html('&lt;img src="&lt;?php echo IMG_DIR; ?&gt;loading/loading-large.gif" width="64" /&gt;').load(contentURL, function(){
          $("#MainTabs").tab();
      });
        else
      $(contentID).tab('show');
      });
      $('#MainTabs a:first').tab("show");
  }); 
  </code></pre>
  
  <p>This is a PHP Code:</p>
  
  <pre><code>&lt;?php
  $start = microtime(TRUE); // Start counting
  
  ob_start();
  session_start();
  
  $temp = microtime(TRUE) - $start;
  echo $temp;
  
  exit;
  
  /*
   * Here is the rest of the contents of the script, so I gave the 'exit' and even with the exit delay it that way!
  */
  </code></pre>
  
  <p>Does anyone know what is happening and how to help me?
  The PHP code is very simple and is taking too long!</p>
  
  <p>Thanks!</p>