Monday, February 26, 2018

Cara Memasang Iklan Adsense Tanpa Memberatkan Loading Blog

  Monday, February 26, 2018
Cara Memasang Iklan Adsense Tanpa Memberatkan Loading Blog 
Cara Memasang Iklan Adsense Tanpa Memberatkan Loading Blog

Cara Memasang Unit Iklan Adsense Tanpa Memberatkan Loading Blog Menggunakan Teknik Lazyload.

Simpan kode berikut ini di atas kode </body>

<script>
//<![CDATA[
var lazyadsense = false;
window.addEventListener("scroll", function(){
if ((document.documentElement.scrollTop != 0 && lazyadsense === false) || (document.body.scrollTop != 0 && lazyadsense === false)) {
(function() { var ad = document.createElement('script'); ad.type = 'text/javascript'; ad.async = true; ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'; var sc = document.getElementsByTagName('script')[0]; sc.parentNode.insertBefore(ad, sc); })();
    lazyadsense = true;
  }
}, true)
//]]>
</script>

Save!

No comments:

Post a Comment

Pesan Komentar. Spammy Comments Takkan Muncul!