Skip to content

Commit

Permalink
lazzy load per single slide in each stack (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
wingsuitist authored Feb 10, 2024
1 parent c6e7487 commit 4149565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/template/reveal.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
const mermaidOptions = extend({ startOnLoad: false }, {{{mermaidOptionsStr}}});
mermaid.startOnLoad = false;
mermaid.initialize(mermaidOptions);
const cb = function (event) { mermaid.init(mermaidOptions, '.stack.present pre code.mermaid'); };
const cb = function (event) { mermaid.init(mermaidOptions, '.stack.present>.present pre code.mermaid'); };
Reveal.addEventListener('ready', cb);
Reveal.addEventListener('slidetransitionend', cb);
</script>
Expand Down

0 comments on commit 4149565

Please sign in to comment.