Authored by ccbikai(👎🏻🍜)

延迟加载百度统计

@@ -61,6 +61,7 @@ @@ -61,6 +61,7 @@
61 61
62 // 非登录状态,加载百度统计 62 // 非登录状态,加载百度统计
63 if (!uid) { 63 if (!uid) {
  64 + setTimeout(function() {
64 (function() { 65 (function() {
65 var hm = document.createElement("script"); 66 var hm = document.createElement("script");
66 hm.src = "https://hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; 67 hm.src = "https://hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
@@ -73,6 +74,7 @@ @@ -73,6 +74,7 @@
73 var s = document.getElementsByTagName("script")[0]; 74 var s = document.getElementsByTagName("script")[0];
74 s.parentNode.insertBefore(hm, s); 75 s.parentNode.insertBefore(hm, s);
75 })(); 76 })();
  77 + }, 1000);
76 } 78 }
77 }()); 79 }());
78 </script> 80 </script>