Create a Simple Loading Screen with jQuery and JavaScript
Simple code to help you create a loading div that disappears when the document has loaded. You may not see the loading message on a fast internet connection, so I added a delay function to it (you don't need to add this). ## Loading... <code readonly="true"> <xmp>Loading... <style> .loader{ } </style> </xmp> </code> </pre> <p>If you want to make the loader full screen, try the CSS below. You can also replace the loading text with any GIF image file you find on the internet. <pre data-line=""> <code readonly="true"> <xmp>Loading... <style> .loader{ width: 100vw; height: 100vh; position: fixed; background: white; z-index: 100; left: 0; top:0; text-align: center; border: 3px solid black; padding-top: 30%; } </style> </xmp> </code> </pre>