Creating a Progressive Queue in IE6 JavaScript

Today IE6 really kicked my butt, I had the following code working in FireFox, IE7, etc, all except IE6: ShowLoadingPanel(); // execute some code here HideLoadingPanel(); The above code is really simple, it shows a full screen loading panel when I am executing some code in between the Show and Hide functions for the loading panel. It worked in every browser that I tried except for IE6. This seemed to occur because the execution of the JavaScript was happening in the same thread as the UI rendering of the screen, which would block all screen updates to the browser until the JavaScript was executed. By the time all the JavaScript is done rendering the UI is in it’s final visual state, so it looks like the loading graphic was never run. Note I don’t know for sure that this is what is really happening, but it definitely seems like the most likely possibility. But if this is true it really explains the lack of support for JavaScript Animation, which heavily relies on a progressive incremental rendering of the UI. ...

December 8, 2008 · 2 min · 362 words · Nick Berardi