BLOG ĐANG TRONG THỜI GIAN PHÁT TRIỂN, MONG SỰ QUAN TÂM CỦA MỌI NGƯỜI DÀNH CHO BLOG MỚI NÀY CỦA HUNG.PRO.VN

[TIPS] Tăng Tốc Độ Tải Google Adsense Cho Website

[TIPS] Tăng Tốc Độ Tải Google Adsense
Xin chào mọi người, hôm nay trời đổ cơn mưa. Làm cho bản thân cảm thấy có chút buồn, chút chán nản với công việc hiện tại. Nên ngồi thả thính internet thì thấy bài này khá hay cho nhiều bạn muốn tăng tốc độ tải trang website có treo quảng cáo của GOOGLE ADSENSE của bạn lên.
Thủ thuật này hoàn toàn đơn giản với mọi người.

Code Google Adsense Mặc Định.

  <script async src = "// pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"> </script> <ins class = "adsbygoogle" style = "display: inline-block; width: 728px; height: 90px" data-ad-client = "ca-pub- UNIQUE_ACCOUNT # " data-ad-slot = " UNIQUE_AD # "> </ins> <script> (adsbygoogle = window.adsbygoogle || []). push ({}); </script>


Mọi người tùy biến lại đoạn code theo đoạn code bên dưới để tăng tốc độ tải trang lên nhé. Và trong đoạn code có thời gian chờ là 5s.
<ins class = "adsbygoogle" style = "display: inline-block; width: 728px; height: 90px" data-ad-client = " ca-pub- UNIQUE_ACCOUNT " data-ad-slot = " UNIQUE_AD # "> </ins> <script type = 'text / javascript'> (chức năng() { var done = false; var script = document.createElement ('script'); script.async = true; script.type = 'text / javascript'; script.src = '//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'; var createScript = setTimeout ( chức năng(){ document.getElementsByTagName ('HEAD'). item (0) .appendChild (script); }, 5000 ); script.onreadystatechange = script.onload = function (e) { if (! done && (! this.readyState || this.readyState == 'load' || this.readyState == 'complete')) { (adsbygoogle = window.adsbygoogle || []). push ({}); } }; })(); </script>
Nhìn vào đoạn code trên mọi người cũng biết nên thay đổi thông tin gì để phù hợp với tài khoản GOOGLE ADSENSE của các bạn nhé.
 
Chúc các bạn thành công với thủ thuật hay này.

Post a Comment