1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

Run ads only when container is visible

This commit is contained in:
Daniel 2022-02-09 13:15:07 -03:00
parent 32d6922a68
commit 946bdf3f61

View file

@ -2242,6 +2242,7 @@ function startGoogleAd(selector){
try {
(adsbygoogle = window.adsbygoogle || []).push({});
} catch (e) {
setTimeout(function(){startGoogleAd(selector);},1000);
console.log('startGoogleAd ERROR',selector);
}