-
Notifications
You must be signed in to change notification settings - Fork 71
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
Optimize: Reduce Bundle Size Further #55
Comments
Bundle-size reduced by about 10 percent when mathjs was removed See #77 |
I have a branch where React Markdown has been removed and the Pages are split into a bundle of its own. Which ends up at roughly 1.76 MB, as follows, with
Compared to running on master as of now, which ends up at 1.79MB, big win yay!
The biggest win is that you can paint the first screen faster. Next step, though not blocked by this, would be to enable the service worker and have a sound offline mode. I still need to do some work on the PR, but might come up soon. |
@icyJoseph , thanks! Because I've merged your PR multiple times, I'll like to add you at the bottom of this repo's README as one of the main contributors. I'd do this if that's alright with you :) |
Oh thank you! Like I said before I really like this project! So yeah, that's alright! |
Using only a partial bundle of Plotly reduced the bundle size by 50%.
Right now, Plotly still occupies 75% of the bundle.
#54
Other things that we can try:
MathJS
as dependency and just write all the matrix multiplications from scratchReactMarkdown
and just write them in htmlreact-icons
is taking up more space than it shouldpreact
andeject
Related Links
Eject
Preact
Codesplitting
Importing only one icon from react-icon
The text was updated successfully, but these errors were encountered: