Delay JavaScript execution
I use a third party ad server to deliver the advertisements on my site. There are two invocation methods: IFRAME and JavaScript. I currently use the IFRAME method because it allows the full webpage to render independently of the ads ... in other words, without slowing down browser rendering time contacting and downloading images or flash animation from a third party server. I don't want the page content to be delayed being displayed because of a slow ad server or large flash animated ad. However, the JavaScript version is more full featured. Is there a way that I could use the JavaScript version while telling the browser not to execute it until the end? What if I were to include the JavaScript via an external file instead of inline?
cscgal
The Queen of DaniWeb
19,427 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
Thanks, guys. Appreciate the help! I will have to play around with this because my JavaScript code uses document.writes so I need to implement them inline where they belong. :) Will work on it and let you guys know!
cscgal
The Queen of DaniWeb
19,427 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
Because I'm using a third party ad server, I don't have access to the script, itself (such as editing the document.writes). All I can do is call the
cscgal
The Queen of DaniWeb
19,427 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230