A progress bar to determine how much of the page is loaded? How much content are you trying to load on your page?? There are better uses for progress bars. I wouldn't use one for the reason you're asking. Maybe just use a loading spinner gif instead. An optimized page shouldn't take longer than 3 seconds to load.