Dynadot โ€” .com Transfer

Force object or div to load last?

Spaceship Spaceship
Watch

John84

Established Member
Impact
2
Hello,

I just added an rss feed using a free service from rssfeedreader.com to my health site; found on the left hand column under the menu. Problem is, it has seriously slowed the site's load time. Is there a way to force it to load last? This way the content still loads quickly for the viewer.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
I don't think there is any way to do this with css but if you want to use javascript there is.


Javascript
Code:
function delayLoad() {
setTimeout('loadRSS();',2000);
}

function loadRSS(){
var newDIV = document.createElement('div');
var newID='RSScontent';
newDIV.setAttribute('id',IDnew);
document.getElementById('RSSouter').appendChild(newDIV);
document.getElementById('RSScontent').innerHTML='What Code You Use To Call Rss Feed';
}

HTML
Code:
<body onLoad="delayLoad()">



<div ID="RSSouter" style="width:125px;height:400px;margin:auto;margin-top:15px;overflow:hidden;">


</div>

This code will create a DIV element after 2 seconds and add it to your existing DIV witch now has a ID of 'RSSouter'. This should work with,
Explorer 5+
Explorer 5 Mac+
Mozilla 0.9.4+
Konqueror 2.2+
Opera 5+

This code has not been tested but It should give you an idea what your looking for. If you need help just pm me

P.S. the code above is displaying wrong It should be "appendChild(newDIV);"
 
Last edited:
0
•••
Appraise.net
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back