diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_partials/posts/comment.html | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/layouts/_partials/posts/comment.html b/layouts/_partials/posts/comment.html index 6e178e5e..8a08e816 100644 --- a/layouts/_partials/posts/comment.html +++ b/layouts/_partials/posts/comment.html @@ -56,12 +56,5 @@ function loadGiscus() { document.body.appendChild(script); } -const observer = new IntersectionObserver((entries, obs) => { - if (entries[0].isIntersecting) { - loadGiscus(); - obs.disconnect(); - } -}); - -observer.observe(document.getElementById("action-menu")); +document.addEventListener('DOMContentLoaded', loadGiscus); </script> |
