So, if you want to show the message “Page loading” and hide it when iramram has finished loading, you can do something similar to the example below. Note that I used jQuery only to simplify this process. But obviously, this can be done with 100% Javascript.
I also created this on JSFiddle to show you the result. Check here !!
<html> <head> <script type="text/javascript"> function load() { </script> </head> <body> <div id="loading">This page is currently loading.. Just a sec please!</div> <div id="finished" style="display: none">Thanks for waiting, enjoy my website now!</div> <iframe style="display: none" onload="load()" src="your_url.php"></iframe> </body> </html>
Jules source share