title: Load adsense ads through page transition with jQuery mobile
body: <p>I have been reading the <a href="https://stackoverflow.com/questions/1142861/jquery-append-google-adsense-to-div">web</a> and trying out things for days looking for a way to show the Google Adsense ads through jQuery mobile transitions without breaking the ToS. I am a bit stuck so I turn to the wisest community.</p>
  
  <p>The Adsense tag is made of three scripts (i) a general one, (ii) a list of slots and (iii) the display itself. The first two go in the <code>&lt;head&gt;</code>, the latter in the <code>&lt;body&gt;</code>.</p>
  
  <p>I can display the ads on my first page just fine. The problem comes with page transition.</p>
  
  <p>Since jQuery Mobile does not reload the <code>&lt;head&gt;</code>, an option is to prepare the <code>googletag</code> while loading the <code>&lt;head&gt;</code> the first time. This sets the limit to a maximum of three ads per page, which, across a whole site is not a lot. Plus it means that you will have to move ad <code>&lt;div&gt;</code> around, which is not so great either. Finally, it means that you may load ads and not display them until the user goes to the page where it belongs, if ever. Which is not so ToS compatible either.</p>
  
  <p>Is there a way to load a fresh new ad on each transition? If yes, where do I put the Google scripts to make sure they load properly?</p>