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.
Frequently Asked Questions
What are the benefits of using Google AdSense asynchronous script on my blog?
AdSense asynchronous script doesn't interfere with other web elements, improving page loading speed.
How can I add Google AdSense asynchronous script to my blog?
Simply log in to AdSense, create an asynchronous unit, and insert the provided JavaScript code into the header of your web pages.
What issues did webmasters face with synchronous AdSense scripts?
Synchronous AdSense scripts could slow down page loading and interfere with other elements on the page.
Is it safe to use the beta version of AdSense asynchronous script on my website?
While still in beta, the AdSense asynchronous script is generally safe to use on websites.
How does the AdSense asynchronous script help in speeding up websites?
By being asynchronous, the script doesn't block other elements from loading, thus improving overall page speed.
What is the difference between synchronous and asynchronous scripts in AdSense?
Synchronous scripts can block other page elements, while asynchronous scripts run independently, enhancing performance.
Where should I place the AdSense asynchronous code in my blog?
Insert the JavaScript part in the header of your pages and place the ad code where you want the ads to appear.
What is the final step to implement AdSense asynchronous script on my site?
After inserting the code, make sure to save the changes and your AdSense ads should start displaying on your blog.