PDA

View Full Version : how to make an iframe to load after all the rest of the forum page is up


Yellow Slider
06-08-2007, 12:25 PM
Users that are using ie in my forum are suffering from late page load, because we use an iframe in the forum that iframes a page from a slow server, FF users aren't suffering couse it's a smarter browser in my opinion, how can i make the page to load and afterwards the iframe?

couse now the situation is that all the page is basically stucked till the iframe will load.

thanks alot.

VBDev
06-09-2007, 07:44 PM
There maybe a solution:


Put an empty div tag instead of the iframe : <div id="mydiv"></div>

Then at the end of the page template add the following bit of code:
<script type="text/javascript">
fetch_object('mydiv').innerHTML = "<iframe ....";
</script>


This should do the load of the iframe after the start of your page loading :)