iframe loader jquery

JavaScript
<div class="holds-the-iframe"><iframe here></iframe></div>

.holds-the-iframe {
  background:url(../images/loader.gif) center center no-repeat;
}
Source

Also in JavaScript: