Loading Bar until page loads completely using Javascript

This tutorial was requested by Sumit. In this tutorial I’m going to tell how to put up a loading screen until the page has loaded completely. DEMO Here is the screenshot of loading screen : The loading bar will fade out when loading is completed. This code will work for all sites including Blogger Blogs, WordPress Blogs¬†except Dynamic Views Template¬†of **Blogger **(because it uses ajax loading). You can change the image if you want.