We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 84ed7e7 + c0e66df commit c8542f8Copy full SHA for c8542f8
source/js/pjax.js
@@ -32,11 +32,18 @@
32
// // TODO pace start loading animation
33
// })
34
35
- // // Listen for completion of Pjax
36
- // document.addEventListener('pjax:complete', function() {
37
- // return;
38
- // // TODO pace stop loading animation
39
- // })
+ // Listen for completion of Pjax
+ document.addEventListener('pjax:complete', () => {
+ // MathJax reload logic
+ if (window.MathJax) {
+ try {
40
+ window.MathJax.typesetPromise && window.MathJax.typesetPromise();
41
+ } catch (e) {
42
+ console.error('MathJax reload error:', e);
43
+ }
44
45
+ // TODO pace stop loading animation
46
+ });
47
48
document.addEventListener('DOMContentLoaded', () => initPjax());
49
}());
0 commit comments