How can I display a loading bar before the entire page is loaded?