replaced document.ready with window.onload

Using window.onload should make the progress bar load a bit faster.