Answer the question
In order to leave comments, you need to log in
Lazyload adsense for android?
Hello, I added lazy loading ads to the site. Everything is ok on the desktop, on the smartphone (Android, Chrome / Opera) ads are not loaded.
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/ad... ";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a)}(),lazyadsense=!0)},!0) ;
What's the trouble - the event is not caught or somewhere else?
Answer the question
In order to leave comments, you need to log in
Google Chrome Remote Debugging on Android:
https://youtu.be/ug6TTlSmEvY
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question