summaryrefslogtreecommitdiff
path: root/themes/tabi-lean/static/js/loadComments.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/tabi-lean/static/js/loadComments.min.js')
-rw-r--r--themes/tabi-lean/static/js/loadComments.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/tabi-lean/static/js/loadComments.min.js b/themes/tabi-lean/static/js/loadComments.min.js
new file mode 100644
index 0000000..ef14653
--- /dev/null
+++ b/themes/tabi-lean/static/js/loadComments.min.js
@@ -0,0 +1 @@
+document.addEventListener("DOMContentLoaded",()=>{const t=document.querySelector("#load-comments");t&&t.addEventListener("click",()=>{var e=document.createElement("script");e.src=t.dataset.scriptSrc,e.async=!0,document.body.appendChild(e),t.style.display="none"})});