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

For those of you who use their blog as one of their income sources, they certainly know Google AdSense. AdSense is a Google product that is publishers use on their site. Although not everyone has the same.

Setup Google AdSense Ads Lazy Load To Increase Blogger Speed

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

AdSense is already using it as asynchronous, but it will still make the blog wait longer to load all content on your website. Here I am provide a tips for those of you who want to speed up fast loading their blog, please follow the following 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> 

<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.

Here are some 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.

But for me, I see this as new information, which I appreciate here is a development "Will installing this code affect AdSense?" No, curiosity can make me very happy even though there are dangers that need to be accepted.

Komentar

Postingan populer dari blog ini

Blogger Template 2021- Topify Premium Blogger Template Free Download

Tata Sky Broadband Plan: Get 300 Mbps Speed, Starting Price Rs 1600, Unlimited Data & Calls

Reliance Jio Recharge plan: Rs 329 for Unlimited Voice calls, 6GB Data, 84 days Validity