Thursday, July 25, 2013

How to load Adsense Ads Faster in Website

Adsense is a worlds popular ad network used by many publisher to show Ads on their site. But many times people face page loading issues whenever they adds Ads on their website, This could happened because, Ads will be cached from their server which may delivered many requests at same time. But still with AdSense we get a lot more refined experience and sometimes page loading time issues, so now we can fix this thing with the help of Asynchronous Loading option that automatically renders ad after the page has been full loaded up. So here is complete guide to use Asynchronous loading and will not take much time to configure.

Asynchronous AdSense Ads for Faster Page Loading:
So now another good part about this technique is that the script for Google ads that was necessary to be placed with every code can now be placed just once and that right above the </head> tag, so it automatically loads all the ads and it is loaded even once. So now just follow below steps and make your website faster with AdSense too.
  1. Open Blogger > Template Edit HTML.
  2. Now press Ctrl + F and search </head> tag & paste below code above it.  
  3. <script async='async' src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
Now your script is placed, now its time to change all the AdSense codes.
Open your AdSense Acc. > My Ads, now press Get Code option on your previously created ads and from dropdown menu choose Code Type – Asynchronous (BETA) like below.



Now you will get your ads code like below:
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- HU 336 x 280 -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-1234567890013123"
data-ad-slot="1233423443"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Just remove the red line from it as you have already placed it right above the </head> tag, now just change previous AdSense code with new one.
That’s it now your new AdSense codes are placed and you can enjoy faster page loading with undisputed Ads loading.