How To Speed ​​up Blog Loading with Lazy Load AdSense | Droidnur123

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

How To Speed ​​up Blog Loading with Lazy Load AdSense | Droidnur123

 For those of you who use their blog as a source of income, you must be familiar with Google AdSense. Yes, Google AdSense is a Google product which is one of the reasons and attractions for publishers to further develop their sites. Although not all of them have the same reason.


On the other hand, AdSense is one of the publishers of loading because the ads displayed by JS AdSense will reduce the loading speed of our blog even though JS AdSense is already using asynchronous, but it will still make the blog wait longer to load.


Here I will give an example of a comparison image before and after using this Lazy Load AdSense trick.


Well, for those of you who want to speed up the loading of their blog, please follow these tips.


How to Speed ​​up Blog Loading with Lazy Load AdSense?


The workings of this code are quite simple, namely, ads will appear after we scroll the page. So AdSense JS will not appear before we scroll the site page.

These tips are intended for friends who have installed AdSense on their blogs. For those who haven't, the code that I will share can be used for other needs, such as loading external JS links.

First Open Blogger > then Click the Theme menu >next Click the Edit HTML button > Add the code below before </body>or&lt;!--</body>--&gt;&lt;/body&gt; 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>

If not, make sure to remove all AdSense JS links that are usually embedded in the AdSense ad unit code. Like this :

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


This code can also be combined with the JS Adblock Killer link that I shared in the post "How to Install the Latest Version of Adblock Killer". For those of you who have done the trick, you can use this code:


<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://cdn.jsdelivr.net/gh/Arlina-Design/quasar@master/arlinablock.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a)}(),lazyadsense=!0)},!0);
//]]>
</script>

Once when all processes are done please click on the Save theme button and you are done.

Maybe some friend asks, is this "Lazy Load AdSense" code safe for our AdSense?


The answer is of course absutelotle safe. Because Google also recommends speeding up the loading of the blog as well as installing the Lazy Load Image code to speed uploading images on web pages.

And will Lazy Load AdSense affect our blog's AdSense revenue?


For this one, I don't know, because I just installed it myself. We'll see the progress, if the income decreases, maybe it's not our luck 😊 hehe... Eh, the solution, my friend, can revoke the code
 and return it as before.

In conclusion, focus on what you think you need. If you want a faster blog, you can do the tricks above, but if you are still in doubt about your AdSense income (which will probably) decrease, you just don't want to install it. But for me, I consider this a new experience, what I value here is the progress "Will installing this code affect AdSense?" Well, that curiosity makes me more excited even though there are risks that need to be accepted

Okay, I'll suffice for the post "Speeding up Blog Loading with Lazy Load AdSense," hopefully, it's useful for all of you and greetings.






Go to Link

About the Author

Droidnur is the Founder & CEO of droidnur.eu.org & Publisher with an Entrepreneur. He is Also a Collage Student & Full Time Passionate Blogger.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.