Does jQuery add a lag time to checking checkboxes?
<p>I have some jQuery code...</p>

<pre><code>$('&lt;input/&gt;').attr('type', 'checkbox').change(function() {
    if(this.checked) {
       grid.showCol(this.value);
    } else {
       grid.hideCol(this.value);
    }
});
</code></pre>

<p>I notice that when I check/uncheck the checkbox, it takes a long time for the checkmark to appear or disappear. This makes me wonder, is the checkmark supposed to appear <strong>before</strong> or <strong>after</strong> the code in my change event finishes executing? If the checkmark is rendered after, it would make sense why it's taking so long. If not, well, why does it take so long?</p>

<p>If it matters, I'm using Chrome.</p>

<p><strong>Edit</strong></p>

<p>Okay, I found out that e.preventDefault() removes the lag time. But now I have another problem: I still experience this lag time when the label for my checkbox is clicked. How to get rid of this?</p>
