How to Setup Lazy Load for Google AdSense Ad units: Here's the Simple Steps to do

Friend's, For those of you who use blog as one of your income sources, they certainly know Google AdSense. We all know "AdSense" is a Google product that is publishers use on their site for earn money. Although not everyone has the same platform.

Because after implement AdSense Code on your Blogger site! Your site speed is very slowly load. For this reason many visitor return from your site to other site for same content.

Setup Google AdSense Ads Lazy Load To Increase Blogger Speed

AdSense is already using it as asynchronous for slove this issue! but it will still make the blog wait longer to load all content on your website.

Here I am provide a simple tips for those of you who want to speedup loading their Blogger website.

So, Implementing Google AdSense Lazyload script, please follow the below tips.

How to setup Blog with AdSense Lazyload

The way the code works is very simple, that is, the ad will appear after browsing the page. So AdSense JS will not appear before scrolling to the site page.

These tips are for you who have installed AdSense on their blog site.

Open Blogger >> Click on the themes menu >> Click the Edit HTML button >> Enter the code below just above the </body>  tag.

<script type='text/javascript'>
//<![CDATA[
// Lazy Load AdSense
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="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a)}(),lazyadsense=!0)},!0);
//]]>
</script>

 Note:  Make sure to delete all AdSense JS (javascript) links that are usually installed in the AdSense ad unit code Like this→

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

After adding click the Save theme and finish.

You may be asking, is this code safe in our AdSense? The answer is safe. Because Google also suggested speeding up website and code Lazy Load Image to speed up uploading images to the site page.

And will it affect AdSense revenue for our blog? I don't know here clearly, it's Effect CPC but not earning, because I put it on myself.

Let's look at the progress, if the earnings is reduced then maybe it's not our luck ... Eh, the solution is that you can return the code and return it as before.

In conclusion, prioritize what you think is needed. If you want to blog load faster, you can do the above tricks, but if you still have doubts about AdSense revenue, you can simply abandon the purpose of installing it.

Read Also:

Conclusion

Here are the tips I can share on this post on How to Speed ​​Up Blog website using Adsens Lazy Load.

I hope it can be helpful too! 
If you think this information is helpful please share with your friends.

Debashis

Debashis is a Young Entrepreneur Blogger having Good Technical skills, He also an Experienced Article Writer. He likes to Share Knowledge and Experience with People. facebook whatsapp telegram instagram

13 Comments

To be published, comments must be reviewed by the administrator.

Previous Post Next Post