Version 2 will not start the fader until both the GIF and the HTML page have loaded. In case the prefix variable is missing from the array file, we create one here and assign it an empty string. Well, almost immediately. As you know, Explorer stops to refresh the display only if it is idle . While a script is executing, no refresh is possible.
Many users complain about pages that use onload handlers to run complicated scripts.
In many cases, they don't see the page until the script has finished executing, especially if the page contains tables. The loadCount variable is incremented with each call. So, we first set the resize handler for the window, to ensure that we don't lose the fader when the user resizes the window.