From 2efb24b00756a4a4b5c794f467952738a8b55d41 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Mon, 5 Sep 2022 05:45:51 +0200 Subject: [PATCH] Improve comments support --- _includes/comments.liquid | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/_includes/comments.liquid b/_includes/comments.liquid index 5de13c9..6d40b58 100644 --- a/_includes/comments.liquid +++ b/_includes/comments.liquid @@ -15,14 +15,12 @@ this.page.url = "{{ disqus_url }}/"; this.page.identifier = "{{ disqus_page_url }}/"; }; - (function() { - window.setTimeout(() => { - var d = document, s = d.createElement('script'); - s.defer=true; - s.src = 'https://{{ disqus_id }}.disqus.com/embed.js'; - s.setAttribute('data-timestamp', +new Date()); - (d.head || d.body).appendChild(s); - }, 1000); + (function() { // DON'T EDIT BELOW THIS LINE + var d = document, s = d.createElement('script'); + s.defer = true; + s.src = 'https://{{ disqus_id }}.disqus.com/embed.js'; + s.setAttribute('data-timestamp', +new Date()); + (d.head || d.body).appendChild(s); })();