scenario: page loads with multiple ads. the banner ads are affecting the perceived load time of the rest of the page content. to address this, i'm trying to fire them off AFTER the page completely loads.
i'm not proficient with JS by any stretch of the imagination, but i believe a solution could involve using onload. one thing of note is that i am not able to manipulate the body tag.
is there a way, whether it be within the document or an external JS file, that i can somehow add an onload statement to these? i tried using a getElementById in an external JS file to replace the contents of an empty div with the snippets of JS below, but that loaded the entire page then fired off the JS on a new page.
i feel there should be a simple way to do this. my trials by fire have seem to have gotten me close, but not all the way. it seems like i should be able to just drop a "window.onload = DISPLAY_AD(IncrementCounter(), 1);" in there and call it a day, but then again that's probably why i'm not a JS person in the first place.
currently existing HTML:
<div id="left" class="ad">
<div id="right" class="companion">
anyways, any help/feedback would be appreciated. i can add more info if needed. thanks!