JQuery dialog only shows up after JS processing
===

I have the following code:

[DOCUMENT READY]
> ( "#hincl_working" ).dialog ( { autoOpen: false, modal: true } );

[SOME JS FUNCTION]
> $( "#hincl_working" ).dialog ( "open" );<br>
> PROCESSING (takes a few seconds sometimes)

I would like the dialog to open BEFORE the processing starts (and then close right after the processing), but the dialog only shows up AFTER the processing, which is not what I want.
Any thoughts?


