March 2021 - Teluguheal



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 the attraction of publishers to further develop their sites. 

Although not all of them have the same reason. On the other hand AdSense is one of the contributors to 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 still it will still make the blog wait longer to load. 

Here I will provide an example of a before and after comparison image using this Lazy Load AdSense trick. Well, for those of you who want to speed up loading your blog, please follow these tips.

Open Blogger>  Click the Themes menu >  Click the Edit HTML button > Add the code below before </body> or &lt;!--</body>--&gt;&lt;/body&gt; 


<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 installed in the AdSense ad unit code. Like this :


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

by this code you can lazy load the ads this is safe for the AdSense also makes your website green, value makes website load has super fast gives your users a signal of professional site while comparing to others.  Make sure you apply this code to your side for safe & faster performance of site which increases the site value, google rankings of the site 


Share the Articles to your co bloggers for more crazy useful codes for bloggers., teluguheal

 

Speed ​​up Blog Loading with Lazy Load AdSense

Subscribe Our Newsletter

Notifications

Disqus Logo