What if you change the visibility of the links to hidden, and then make it visible when it's ready? I say visibility instead of display so that it will not cause any page reflow when the text links are hidden and displayed.
On Jun 26, 6:35 am, hybris77 <dist...@yahoo.com> wrote: > I know I read a good article on this some time ago but connot remeber > what the suggestion was now. > > What I need to do is prevent my links to link to the content I am > loading using ajax calls > when the user might be very quickly clickning things on the page > before the functions to > prevent the default action are in place... > > I 've tried to add a $( 'a' ).click( functiono(){ > return false; > > }); > > before > > $( document ).ready( function() { > > but it's still possible to do the quick enough click... > > many thanks > > /pär