Loading Google Adsense Ads After Page Loading – At The End
Using Google Adsense?
Placing one or more ads (close to) the top of the page?
Tired of those uber-long loading times vastly increasing the load-time of your site?
Here’s a solution.
Of course, also works with other ad services or whatever.
<object> and load the ads.
With jQuery it’s really easy.
First, place the
<object> Tag wherever you want the ad to be, best also defining its size, so it will display even without ads with the right size and not have to be resized:
<object class="ad_something" width="728" height="90" data="" type="text/html"></object>
For the ads I made a small PHP script, checking GET parameters and loading the corresponding ad.
Then, at the bottom of the page, right before