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

JavaScript size #28

Open
svub opened this issue Nov 28, 2019 · 1 comment
Open

JavaScript size #28

svub opened this issue Nov 28, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@svub
Copy link
Owner

svub commented Nov 28, 2019

Right now the JS file is impressive 5MB big - still 1.3MB GZipped. Most of it AFAIK IPFS.
It's half size with minification, but that currently breaks IPFS.

Need to find a solution.

Could be:

  • Code splitting: at least in the frontend, the heavy IPFS could be loaded later w/t a problem
  • Repace the IPFS implementation:
    • Use the official client lib, i.e. don't start a node in the browser, just use an HTTP gateway
    • Try IPFS lite - neither official nor the full functional range but should be enough for storing and getting files
@svub svub added the enhancement New feature or request label Nov 28, 2019
@svub
Copy link
Owner Author

svub commented May 8, 2020

Also, Brave and Firefox started having IPFS natively! So that could safe a lot by checking if IPFS is available and load it on demand otherwise.

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

No branches or pull requests

1 participant