Skip to content
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

plotly.min.js bloats binary size #176

Open
kaihowl opened this issue Jan 7, 2024 · 0 comments
Open

plotly.min.js bloats binary size #176

kaihowl opened this issue Jan 7, 2024 · 0 comments

Comments

@kaihowl
Copy link
Contributor

kaihowl commented Jan 7, 2024

Templates like this one include plotly.min.js such that static plots can be output correctly. For binaries using plotly that only output plots using the CDN distributed version of plotly, this unnecessarily increases the binary size.

Would it make sense to add a Cargo feature that allows to skip the inclusion of the minified plotly version (~2.5 MB)? For example plotly-vendoredjs with a default of true that can be set to false?

Or is there already a way to accomplish the desired behavior of not unnecessarily including the minified plotly version into the __TEXT,__const section of the binary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant