tab menu, delay when clicking through tabs... jquery fix to show loading msg if load time over 1 sec?
<p>I'm wondering if anyone knows a fix for this.</p>

<p>I have a tab menu and when you click between tabs sometimes there is a delay in the page opening, - the difference can be from m/s to about half a minute - so i tried to add in a loading message for the pages that seemed to take a while. </p>

<p>I thought i had solved it by adding in the message when a tab was clicked </p>

<pre><code>jQuery(document).ready(function()
 {
    jQuery('#loading').hide();
    jQuery('.tabmenu a').click(function(){
    jQuery('#loading').show();
 });
});
</code></pre>

<p>but on pages that previously took about 1 sec to load now take at least 5.</p>

<p>What i really need to do is something like</p>

<p>if tabmenu clicked and page takes longer than 1 second to change then show 'loading' message.</p>

<p>Is it possible to do this? Any help greatly appreciated :)</p>

<p>Thanks</p>
