Performance-optimized blogs or websites will eventually drop when advertised by third parties such as Adsense and other digital advertising. To avoid that, a special method is needed to load ads so that loading or website performance is maintained.
Generally, the method used to load ads so as not to affect the performance of the website/blog is to apply lazy load to fish (adsense), therefore here I will give a fairly complete review of lazy load adsense.
What Is Adsense Lazy Load
Lazy load adsense is a lazy loading or smart loading script on adsense ads to reduce the impact of third party code on the website and maintain optimal website performance.
There are several methods to make smart loading on adsense ads including Ad event listeners , Event-based ad requests and Lazy loading , all three of which can be referred to as lazy load adsense.
Why Should You Use Lazy Load Adsense?
Currently there is no better method than lazy load adsense to solve all kinds of website performance issues caused by third party ads.
There are many things that can be solved with lazy load adsense, related to website/blog performance problems, including:
- Third party webfont load
- Main-thread work
- Impact of third party code, etc
That’s why in my title tag it says, lazy load adsense is the best solution for the performance of websites or blogs that are installed with third-party ads.
Immediately I will share the lazy load adsense script with all of you, there are two lazy load adsense scripts that I will share and both lazy load scripts are equally good for maintaining the performance of your website and also support auto ads.
1. Lazy Load Adsense Script (Original)
Lazy load script supports auto ads and effectively solves all website performance problems from third-party impacts.
2. Lazy Load Adsense Script + ca-pub (publisher id)
The second lazy load adsense script also supports auto ads, but if you want to use this lazy load adsense script, you have to replace it ca-pub-3776322894567500with your own adsense publisher or ca-pub id.
Instructions for Using Lazy Load Adsense
<script async=”async” src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”/>
<script async=”async” data-ad-client=”ca-pub-1234567890123456″ src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”/>
style=”display:block” data-ad-client=”ca-pub-1234567891012345″ data-ad-slot=”1670232752″ data-ad-format=”auto”></ins>
How the Lazy Load Adsense Script Works
And that means that adsense ads will only appear when the user scrolls through your blog or website, if there is no page scrolling activity from the user, the ad will also not be loaded (not displayed).
Lazy Load Adsense From Adsense Policy Side
Google is very open to implementing lazy loading on their ads (adsense), Please see the google help center entitled “Viewability best practices”. On that page, Google recommends the use of lazy load adsense or also known as smart loading.
That means Google doesn’t care about the use of lazy laod adsense. But according to google the best practice for implementing lazy load adsense is to use the Google Publisher Tag (GPT).