Google AdSense Asynchronous Code to make your site faster
Google has just added Asynchronous JavaScript support to AdSense ads for publishers for faster loading. Before this, publishers had to use the ad snippet followed by the traditional JavaScript “show_ads.js” on their sites that’s not asynchronous in nature.
With the new Asynchronous AdSense JavaScript, Google ads will be fetched without lowering or affecting the load-times of your website. This is one of the long awaited features in AdSense – and the smart AdSense publishers should implement this new feature right now!
The new Asynchronous code for AdSense ads
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:inline-block;width:300px;height:250px" data-ad-client="ca-pub-xxxxxxxxxxxxx" data-ad-slot="xxxxxxxxxx"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>
How to get Asynchronous code for my AdSense ads?
While generating code for a new AdSense ad, you can see a dropdown called “Code Type” that has Synchronous and Asynchronous (BETA) as options. Just choose the second one and grab the code.
For your existing ad units, just edit go to My Ads, click Get Code and again, select Asynchronous code from the Code Type dropdown.