I am trying to optimize my page for speed. Since the browser blocks processing other requests in a page if a javascript is found, I am wondering if I can move the adsense code to the bottom of the page.
In the sense, I will define a div tag at the position I want to host the ad, and at the bottom, I use javascript to fill the div with the google ad code.
Eg: <html>.... <div id="ad1"></div> ........
<script>document.getelementbyid("ad1").innerhtml = "Google Ad code here"</script></body></html>
1. Is this valid?
2. Will it help improve the performance of the page?