summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2021-11-24 02:06:58 -0500
committerSacha Chua <sacha@sachachua.com>2021-11-24 02:06:58 -0500
commit7283678821a1c550f717535ef04bb6aa05c4abb4 (patch)
tree168b5403f215a1bd0db894b4326471d4e109d063
parentaf0de4a72a9ee600aa21768f2d69bb9bff97ffb1 (diff)
downloademacsconf-wiki-7283678821a1c550f717535ef04bb6aa05c4abb4.tar.xz
emacsconf-wiki-7283678821a1c550f717535ef04bb6aa05c4abb4.zip
Delay chapter list
-rw-r--r--templates/page.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl
index ceaa1049..b0cafcd0 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -353,7 +353,9 @@ transcriptDiv.appendChild(transcriptLink)
}
}
}
-document.querySelectorAll('track[kind=chapters]').forEach(function(e) { displayChapters(e); });
+document.addEventListener('DOMContentLoaded', function() {
+ document.querySelectorAll('track[kind=chapters]').forEach(function(e) { displayChapters(e); });
+}, false);
// @license-end
</script>
</body>