I
I
IA-NE-ROBOT2020-06-03 08:47:11
JavaScript
IA-NE-ROBOT, 2020-06-03 08:47:11

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

1 answer(s)
A
Alexander Yudakov, 2020-06-03
@AlexanderYudakov

Google Chrome Remote Debugging on Android:
https://youtu.be/ug6TTlSmEvY
5ed7a55b0e305667141590.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question