Answer the question
In order to leave comments, you need to log in
How to reduce the download time of the Yandex metrics counter?
How to overcome the problem? More than a second blocks the stream - this is wrong.
Counter example:
<!-- Yandex.Metrika counter -->
<script type="text/javascript" async>
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(111111, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/111111" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
Answer the question
In order to leave comments, you need to log in
What the hell?
Connect it asynchronously and it will load after and in parallel
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question