A
A
Artem Andreev2019-06-25 14:55:27
Search Engine Optimization
Artem Andreev, 2019-06-25 14:55:27

How can I implement proper lazy loading of a CoMagic script?

Hello, there is such a task. It is necessary to optimize the page on which the CoMagic code of this kind is placed.

<script type="text/javascript">
var __cs = __cs || [];
__cs.push(["setCsAccount", "xxxxxxxx"]);
</script>
<script type="text/javascript" src='https://app.comagic.ru/static/cs.min.js' async></script>

Optimization is needed for pagespeed. Tried passing through onload. but for some reason it still shows up in pagespeed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Gvozdev, 2019-06-25
@arty23_03

And what will it give you? 1 pip in Pagespeed? You shouldn't bother so much, if it swears at JS and CSS
And what does it swear at?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question