Friday, October 31, 2008

[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

> Wouldn't a better version of the code be
>
> $.blockUI();
> searchLocDep( .... );
> searchLocArr(  .... );
> searchLocInt(  ... );
> setTimeout(function() {
>     $.unblockUI();
>
> }, 200);
>
> That way all the "search" stuff gets run asap?

No. You need to give the browser a chance to render the DOM updates
before hitting it with intensive stuff.

No comments: