I have some Adsense code from Google on my site http://www.stormvisions.com to serve ads. If you have a Hosts file or other ad busting software the page hangs at the point where the code is for a few minutes (until it times out I guess) then loads the rest of the page. The delay is unacceptably long.

The solution seems to be to create empty div's for the code, load the code at the end (just before the closing body tag) and then move the code that calls the showads.js file into the empty divs when the page has finished loading. I've been picking at this for the past two weeks but haven't figured it out. If anyone has an easy solution please let me know. I tried loading them in place not visible and then set them to visible but there is still the pause so loading them after the page loads seems to be the way.

Thanks for any help.


Find me at: |Stormvisions| Twitter|