Here is a quick fix for most cases:
CSS:
.iframe-loading { background:url(/img/loading.gif) center center no-repeat; }
You can use animated GIF downloads if you want,
HTML:
<div class="iframe-loading"> <iframe src="http://your_iframe_url_goes_here" onload="$('.iframe-loading').css('background-image', 'none');"></iframe> </div>
Using the onload event, you can remove the boot image after loading the original page inside your iframe.
If you are not using jQuery, just put the id in the div and replace this part of the code:
$('.iframe-loading').css('background-image', 'none');
more or less like this:
document.getElementById("myDivName").style.backgroundImage = "none";
All the best!
David Toledo May 19 '18 at 15:06 2018-05-19 15:06
source share