marshian
New Member
- Messages
- 526
- Reaction score
- 9
- Points
- 0
I'm helping a friend of me with his site, he's has an ad-enchanted plan (on Stoli), but the script that shows the ads slows down the page load a lot, since the script gets executed as soon as the browser sees the <script> tags... My question is, can we not implement the ad code directly into the page, but insert it after the rest of the page has loaded?
Something like:
Thank you,
Marshian
Something like:
Code:
function insertAds() {
document.getElementById("ads").innerHTML = "<!-- Add code here -->";
}
document.onload = insertAds();
Thank you,
Marshian