jquery - Block specific links before a page fully loads and binds click events
<p>I have a modal dialog plugin written in jquery, that binds to the click event of all of the &lt;a&gt; elements with a specific class.</p>

<p>The modal dialog 'fetches' a page via AJAX, which is declared under the 'href' parameter of the &lt;a&gt;  element.</p>

<p>Everything works fine, but - when a user clicks the &lt;a&gt; link before the page was fully loaded and ready (before the click event is binded to the element) - the browser navigates to the page declared in the 'href' parameter.</p>

<p>Any ideas of how to prevent this behavior? An ideal situation would be to ignore clicks on these elements before the page has fully loaded. Client-side performance is crucial.</p>
