General Question JQ/PHP
<p>What is faster on opening and proccecing:</p>

<p>Having under 1 file all the jquery functions or</p>

<p>Each function to a separate file and call it when ever you need it?</p>

<p>Ex. I have a blabla.js file that has 4 functions in it.
And my xaxa.php that calls the blabla.js.</p>

<p>Now, when I firstly open my page its fast enough. No problem (even with cookies cleared and all)</p>

<p>BUT... when I first (and after) click a button that activates a part of my blabla.js all my links and functions are opening/working slower.</p>

<p>So should I separate my functions and load each js file where ever I need it or my problem is somewhere else?</p>

<p>Thank you</p>

<p>(As I said I start to suspect something in my structure)
So here is a sample of my jq:</p>

<pre><code>$(document).ready(function(){
 $(".avoid_ref_add").click(function(){
  var keyValues = {
    pid : $(this).parent().find('input[name="pid"]').val()
    };
      $.post('help_scripts/cartfunct.php', keyValues, function(rsp){
        $('#content').load("p_body.php");
      });
 return false;
 });
function remove
function update
});
</code></pre>

<p>and I have my items.php items2.php items3.php...</p>

<p>Now, MY COOKIES I HAVE THEM CLEARED NO CACHE... When I firt open the site, it loads fast and all links are fast...</p>

<p>But if I click that add button everything start to work REALLY slow...</p>

<p>IF I just refresh the whole page it starts working fast again and so on...</p>

<p>FOR ME is quite strange and I cannot figure what I did wrong... Because if the page was slow, it wouldn't load fast from the first time... Correct? Is it something in my code?</p>
