Ways To Avoid Histats
Blogging Loading - Although there are Google Analitycs with more accurate and
detailed data, but until now there are still many bloggers who use histats as a
web statistics counter.
Compared to Google
Analytics, with histats it's easier to read blog statistics for beginners.
But unfortunately there are
still many who do not optimize the use of histats on the blog, so that its
existence adds to loading the blog.
For that, now I will give
tricks on how to install the histats code so as not to burden blog loading, if
you care about blog loading speed.
The first, my suggestion is
not to use histats that use statistical display on a blog, unless your blog
traffic is very high so it's not ashamed if you want to show off.
Secondly, you should use the
hidden tracker histats code. But even though the hidden tracker histats code
uses asynchronous, but in reality it still interferes with blog loading. For
that, please use my following trick so as not to overload the loading blog.
Usually the hidden tracker
histats code as follows as an example.
var _Hasync= _Hasync|| [];
_Hasync.push(['Histats.start', '1,4331xxx,4,0,0,0,00010000']);
_Hasync.push(['Histats.fasi', '1']);
_Hasync.push(['Histats.track_hits', '']);
(function() {
var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true;
hs.src = ('//s10.histats.com/js15_as.js');
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs);
})();
Save your blog's hidden tracker histats code in notepad then save it as histats.js and host it on Github .
Then use the following code
and save it above the </body> code
<script>
//<![CDATA[
function downloadJSAtOnload(){var d=document.createElement("script");d.src=" HOSTING URL histats.js SAVE HERE ", document.body.appendChild (d)} window.addEventListener? window.addEventListener (" load ", download JSAtOnload,! 1): window.attachEvent? window.attachEvent (" onload ", downloadJSAtOnload): window.onload = downloadJSAtOnload,! 1): window.attachEvent? window.attachEvent (" onload ", downloadJSAtOnload): window.onload = downloadJSAtOnload;
//]]>
</script>
And save the following code under the code <meta charset='utf-8'/>
<link as='script' href=' HOSTING URL histats.js SAVE HERE 'rel =' preload '/>
KODE-3
Change code URL HOSTING histats.js SAVE HERE with the URL hosting your blog histats.js earlier.
Good luck and hopefully
useful.