Skip to content

Commit

Permalink
Attempt to fix issues with instant loading
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Sep 27, 2024
1 parent 448972a commit 8355b45
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
8 changes: 1 addition & 7 deletions docs/src/js/extra-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,5 @@ import arithmatex from "./arithmatex"
}
}

if (window.document$) {
// Material specific hook
window.document$.subscribe(main)
} else {
// Normal non-Material specific hook
document.addEventListener("DOMContentLoaded", main)
}
window.document$.subscribe(main)
})()
2 changes: 1 addition & 1 deletion docs/src/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ theme:
- announce.dismiss
- navigation.tabs
- navigation.top
# - navigation.instant
- navigation.instant
- navigation.indexes
- toc.follow
- content.tabs.link
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ theme:
- announce.dismiss
- navigation.tabs
- navigation.top
# - navigation.instant
- navigation.instant
- navigation.indexes
- toc.follow
- content.tabs.link
Expand Down Expand Up @@ -242,7 +242,7 @@ extra_javascript:
- https://unpkg.com/[email protected]/dist/mermaid.min.js
# - https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
- assets/pymdownx-extras/extra-loader-iLQ-keay.js
- assets/pymdownx-extras/extra-loader-DzDY65is.js

plugins:
- search:
Expand Down

0 comments on commit 8355b45

Please sign in to comment.