jquery .load displays content rather slow
<p>I have the following javascript into a index.php file:</p>

<pre><code>&lt;script type="text/javascript"&gt;
$('.showpics, .showpics2').live('click', function() {
  var theuser = $(this).attr('href');
  $("#piccall:hidden").load('pictures.php?user='+theuser, function () {
    $('#picsbig:hidden').show();
  });
  $('#picsbig:visible').hide();
  return false;
});
&lt;/script&gt;
</code></pre>

<p>The pictures.php file is formed by a doctype declaration, html tag, head (with two css files), body, some php which reads the GET var., DB functions, reading the user pics functions and displaying them. At the end of this file, two javascript files (which are not loaded in the file who is loading this one as well), body end tag and html end tag.</p>

<p>Pictures.php has about 130 lines of code per total.</p>

<p>The thing is, after the click which calls the load of this page, there comes a lag of about 3 seconds after which it is displayed without any errors.</p>

<p>Is there any way I could make this go faster?</p>

<p>Apache is running on a VPS with the following configuration: CentOS 5.5 x64, 1024MB memory, 500GB Band, 0.8GHz</p>

<p>Thank you!</p>
