I need to execute certain javascript instructions AFTER external javascript completes its own process.
(function(){ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = 'http://xxxxxxxx.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();
How can jQuery know when this .js has finished doing what it does?
source share