In this particular case I needed the ads to be called at the end of the page so that the browser would always render the full XHTML page to the user right away so that slow loading ads didn’t delay the rendering of the page.
1. I put my deferredcontent.js code that I wrote in the head tag
2. I added an onload=”relocateDeferredContent();” to the body tag
3. I put an empty div tag where I ultimately wanted the content to end up. E.g <div id=”adleaderboard”></div>
4. I put the deferred content in a display:none div just before the closing body tag at the very end of the page and put each block of code I wanted to relocate in a div with an id of defer-IDFROMSTEP3
[Ad code goes here]
If you want to see it in action you can see it on this San Francisco schools page.