A
A
Anna2020-08-25 11:29:53
Google
Anna, 2020-08-25 11:29:53

PageSpeed ​​and Mango calltracking. How to remove unused js code?

Good afternoon! There was a problem with the speed of the site. We connected the Mango-office call tracking widget, after that an unused JS code /widgets/mango.js appeared in pagespeed.
Is there any way to optimize this?

Widget Code

<script>
(function(w, d, u, i, o, s, p) {
if (d.getElementById(i)) { return; } w['MangoObject'] = o;
w[o] = w[o] || function() { (w[o].q = w[o].q ||
[]).push(arguments) }; w[o].u = u; w[o].t = 1 * new Date();
s = d.createElement('script'); s.async = 1; s.id = i;
s.src = u;
p = d.getElementsByTagName('script')[0];
p.parentNode.insertBefore(s, p);
}(window, document, '//widgets.mango-office.ru/widgets/mango.js', 'mango-js', 'mgo'));
mgo({calltracking: {id:<id  ВИДЖЕТА>,
elements: [{selector: '.mgo-number-<id ВИДЖЕТА>'}]}});
</script>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2020-08-25
@shambler81

google page speed writes a lot of recommendations. BUT considers parrots only n site speed.
That is, all his recommendations are only circumstantial, real speed is important to him.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question