Friday, October 31, 2008

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

Hmmm... what if it takes longer than 200 milliseconds (i know the
common answer would be "wait longer then")....

i dunno, the whole framework/flow of that guys code just seems
unreliable/unstable

On Oct 31, 11:41 am, Mike Alsup <mal...@gmail.com> wrote:
> > 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: