diff options
author | Sacha Chua <sacha@sachachua.com> | 2021-11-24 02:06:58 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2021-11-24 02:06:58 -0500 |
commit | 7283678821a1c550f717535ef04bb6aa05c4abb4 (patch) | |
tree | 168b5403f215a1bd0db894b4326471d4e109d063 /templates | |
parent | af0de4a72a9ee600aa21768f2d69bb9bff97ffb1 (diff) | |
download | emacsconf-wiki-7283678821a1c550f717535ef04bb6aa05c4abb4.tar.xz emacsconf-wiki-7283678821a1c550f717535ef04bb6aa05c4abb4.zip |
Delay chapter list
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.tmpl | 4 |
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> |