fix: conditionally load MathJax (#37360)

* fix: Removed MathJax CDN from header and set it up to download whenever a user goes to a Rosetta Code challenge

* Reworked slightly so that MathJax CDN script is only rendered once

* Simplified further

* Resolved conflicts and updated MathJax fallback to work like the one on donate.js

* Escaped backticks in scriptLoaders.js

* refactor: remove reliance on state
This commit is contained in:
Kristofer Koishigawa
2019-10-30 21:46:39 +09:00
committed by Ahmad Abdolsaheb
parent f6add96fd6
commit 77b27d79f6
4 changed files with 39 additions and 6 deletions

View File

@@ -97,6 +97,7 @@ const mapStateToProps = createSelector(
theme: user.theme
})
);
const mapDispatchToProps = dispatch =>
bindActionCreators(
{ fetchUser, removeFlashMessage, onlineStatusChange },