Recently we showed you how to add the new AdSense asynchronous script to your blog or website to help speed it up. As you may already know, the more external scripts you add to your web pages the slower they become, and synchronous scripts are the worst offender.

Since all AdSense scripts were synchronous, they sometimes prevented other elements of your pages from loading correctly. This was a huge issues for many webmasters.

Now a beta version of AdSense asynchronous script has been made available to use. Even though it’s still in beta, it probably safe to use on your sites. One of the benefits of using asynchronous scripts on your web pages is, they don’t prevent or get in the way of other web elements. Synchronous scripts on the other hand will in, some cases, stop or get in the way of some elements.

To add AdSense asynchronous code to your blog properly, logon to AdSense and create a  asynchronous unit. Then copy just the JavaScript part of the code as shown below and place it in the header of your pages.

 

<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

 

Finally, copy this part of the code and paste it to where you want the ads to show.

<ins class="adsbygoogle"
     style="display:inline-block;width:300px;height:250px"
     data-ad-client="ca-pub-497938433ffh"
     data-ad-slot="2783246519"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

 

That’s it! Hope you come back soon.