[jQuery] how can I wait until blockUI shows

[jQuery] how can I wait until blockUI shows


Hi all,
I am very new to jquery, so please excuse my maybe newbie question :)
I have a following problem:
when I call blockUI and execute JS afterwards, the blockUI shows after
the JS finished executing.
When I put alert after calling blockUI, it shows right after alert
pops up. I suppose, that without the alert the IE is too busy
executing JS and therefore does not show the blockUI. The question is,
how can I give blockUI time to show before rest of JS is executed.
thank you in advance
Michael