Skip to content

Instantly share code, notes, and snippets.

@sohyl87
Last active April 24, 2019 03:54
Show Gist options
  • Save sohyl87/6119798 to your computer and use it in GitHub Desktop.
Save sohyl87/6119798 to your computer and use it in GitHub Desktop.
Append JS file to the Head or body from anywhere (footer) in the page
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment