Answer the question
In order to leave comments, you need to log in
Javascript $.getScript how to download script from disqus?
I ran into a problem loading the script from disqus, the content on the site is loaded via load, respectively, the scripts do not work after loading, I use getScript after the content is loaded into the block, the scripts from the server are loaded and executed normally, however, a script is used to display the number of comments for a certain article on the page (taken from the website):
<script id="dsq-count-scr" src="//gags-hol-es.disqus.com/count.js" async></script>
$.getScript("https://gags-hol-es.disqus.com/count.js");
Answer the question
In order to leave comments, you need to log in
Not suitable, as I understand it, the script is not executed because gags-hol-es.disqus.com/count.js is bound to a specific id, id="dsq-count-scr", you can somehow specify it in getscript ? I tried that too
var script = document.createElement('script');
script.setAttribute("id", "dsq-count-scr");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question