-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary MathJax 2 logic from Perseus.Init #1833
Conversation
GeraldRequired Reviewers
Don't want to be involved in this pull request? Comment |
Size Change: -276 B (-0.03%) Total Size: 859 kB
ℹ️ View Unchanged
|
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (fa98083) and published it to npm. You Example: yarn add @khanacademy/perseus@PR1833 If you are working in Khan Academy's webapp, you can run: ./dev/tools/bump_perseus_version.sh -t PR1833 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome.
packages/perseus/src/init.ts
Outdated
*/ | ||
const init = function (options: PerseusOptions): Promise<undefined> { | ||
const init = function (): Promise<undefined> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that there's nothing async in this function anymore, can you make it just const init = function() {
?
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @khanacademy/[email protected] ### Minor Changes - [#1834](#1834) [`429b9cc15`](429b9cc) Thanks [@nishasy](https://github.com/nishasy)! - [Locked Figures] Use \\$ symbols to denote TeX within locked labels and locked figure labels ### Patch Changes - [#1833](#1833) [`122b3cc1b`](122b3cc) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Removal of unused MathJax2 initialization ## @khanacademy/[email protected] ### Minor Changes - [#1834](#1834) [`429b9cc15`](429b9cc) Thanks [@nishasy](https://github.com/nishasy)! - [Locked Figures] Use \\$ symbols to denote TeX within locked labels and locked figure labels ### Patch Changes - Updated dependencies \[[`429b9cc15`](429b9cc), [`122b3cc1b`](122b3cc)]: - @khanacademy/[email protected]
Summary:
While investigating a regression on Webapp related to our Deprecated Stand-in Widget, we discovered we were initializing MathJax unnecessarily! This initialization is specifically for MathJax2 so it is safe to remove entirely.
Issue: LEMS-2588
Test plan: