Table of Content

  • Asynchronous Version of Adsense Code

Asynchronous Version of Adsense Code


When we check the site loading time or performance in the yslow or in any online tool then it shows that synchronous google ads are taking much more time than other JavaScript.

Google Adsense has made full asynchronous version of the AdSense ad code which improves user experience and web latency for site visitors. Lets see how to implement asynchronous version of adsense code –

Get Asynchronous Version of Adsense Code :

Go to “My Ads” tab in Google Adsense Dashboard and then click on the link Get Code.
Asynchronus Adsense code
Now select the “Asynchronous” from the dropdown menu.
below is the syntax of the asynchronous code you can replace your publisher id in the below code –