Skip to content

Commit

Permalink
deferd diqus
Browse files Browse the repository at this point in the history
  • Loading branch information
yayoimizuha committed May 31, 2020
1 parent 2388bc6 commit a66e940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if (window.location.hostname == "localhost")
return;

var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.defer = true;
var disqus_shortname = '{{ .Site.DisqusShortname }}';
dsq.src = '//' + "chizu-blog-hugo" + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if (window.location.hostname == "localhost")
return;

var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.defer = true;
var disqus_shortname = '{{ .Site.DisqusShortname }}';
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
Expand Down

0 comments on commit a66e940

Please sign in to comment.