How To Setup Google AdSense Ads Lazy Load To Increase Blogger Speed

How To Setup Google AdSense Ads Lazy Load To Increase Blogger Speed

Website page speed is one of the determining factors to rank on Google. It is valid and has been mentioned in several forums organized by Google.

Google is more concerned with the convenience of Internet users than the features in a website and creates the most relevant content that will become the first page on the SERP (engine results page).

This time I will be sharing a solution to speed up website loading using Google AdSense Lazy Load. This can maximize the speed of a page that contains a large number of advertisements.

Use this lazy load script for Adsense, but remember that your CPC will decrease, maybe even your income may be reduced. If your blog or website already has high traffic then you may not have any problem with low CPC.

How to Setup Lazy Load for Google AdSense Ads in blogger blog

  • You should remove all this AdSense script.

<script async src=""></script>

  • Go To Blogger >> Select Theme >> Select Edit HTML.
  • Click anywhere inside the code area and press Ctrl + F keys to open the search box.
  • Now, Search for </body>  or  <!--</body>--></body> tag and paste below code just above of this tag.

<script type='text/javascript'>
// Lazy Load AdSense By
var lazyadsense=!1;window.addEventListener("scroll",function(){(0!=document.documentElement.scrollTop&&!1===lazyadsense||0!=document.body.scrollTop&&!1===lazyadsense)&&(!function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a)}(),lazyadsense=!0)},!0);

  • Click Save Theme.