Javascript - I'd like to show the checkbox check before a long running function runs
<pre><code>&lt;input type="checkbox" onclick="myFunc()" /&gt;
</code></pre>

<p>myFunc is somewhat long running, about a second, and the browser shows the check for the checkbox AFTER the function completes. This causes lots of issues with users.</p>

<p>I'd like the check to show up immediately and then the onlick function to run. Can that be done?</p>

<p>I know I should get the function to run faster, or redesign the user interface, but that's another issue for another time.</p>

<p>thanks</p>
