Show javascript execution progress

Posted by Midhat on Stack Overflow See other posts from Stack Overflow or by Midhat
Published on 2010-06-08T08:36:05Z Indexed on 2010/06/08 8:42 UTC
Read the original article Hit count: 320

Filed under:
|

I have some javascript functions that take about 1 to 3 seconds. (some loops or mooML templating code.)

During this time, the browser is just frozen. I tried showing a "loading" animation (gif image) before starting the operation and hiding it afterwords. but it just doesnt work. The browser freezes before it could render the image and hides it immediately when the function ends.

Is there anything I can do to tell the browser to update the screen before going into javascript execution., Something like Application.DoEvents or background worker threads.

So any comments/suggestions about how to show javascript execution progress. My primary target browser is IE6, but should also work on all latest browsers

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about progress