Use onload handler to set giscus theme as soon as it's loaded

This commit is contained in:
Philipp Oppermann
2021-10-17 18:31:40 +02:00
parent ebbc6381d7
commit 7eb1426e1f
2 changed files with 8 additions and 6 deletions

View File

@@ -38,7 +38,8 @@
data-emit-metadata="1"
data-theme="preferred_color_scheme"
crossorigin="anonymous"
async>
async
onload="giscus_loaded()">
</script>
<p class="comment-directly-on-github">