When best personal Finance plug-in script?

Welcome!
Tried best personal Finance with connect script
if ($(window).scrollTop() > 0) {
 $('.test').after().html('<script type="text/javascript" src="//vk.com/js/api/openapi.js?150"></script> <div id="vk_community_messages"></div><script type="text/javascript"> VK.Widgets.CommunityMessages("vk_community_messages", 127607773, {expanded: "1",tooltipButtonText: "Have a question?"});</script>');
 }

but nothing happened not working for some reason and can't understand why.
Help to understand what the problem is.
Thank you
June 10th 19 at 15:40
2 answers
June 10th 19 at 15:42
I don't understand why is it so difficult?
And if I have to keep shaking here and there this page, it will connect to? It will have to do extra checks, or disable it permanently.
Maybe it makes sense to connect it directly and just make it not visible. And scale to display or hide again. This task is significantly easier and more correct.
People forget that this event continues to be executed always) - Austyn.Kunze72 commented on June 10th 19 at 15:45
just make it not visible

how ? - Constance_Heathcote commented on June 10th 19 at 15:48

style="display:none" or style="visibility:hidden" - Kamron29 commented on June 10th 19 at 15:51
June 10th 19 at 15:44
The correct answer here

Find more questions by tags jQueryJavaScript