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

Smaller pure js library? #37

Open
renovatorruler opened this issue May 28, 2020 · 6 comments
Open

Smaller pure js library? #37

renovatorruler opened this issue May 28, 2020 · 6 comments

Comments

@renovatorruler
Copy link

Is it possible to have a smaller sized library for the pure js implementation? 871kb is a bit too big. How can I reduce the size of the library?

@njmurarka
Copy link
Contributor

@scottburch

@scottburch
Copy link
Collaborator

I will look into this when I get a chance. There are a lot of dependencies at the moment.

@scottburch
Copy link
Collaborator

scottburch commented May 29, 2020

@prashantpawar I wanted to understand your concern better. A quick fix might be to try to break up the bundle into smaller modules. While this will not reduce overall load time (which is a problem for low bandwidth applications), it would improve initial load time of an app (hiding that time)

If initial load time is an issue, you could look into async loading the library as a workaround at the moment. You are right that it is quite large, I just don't have the bandwidth (pun intended) to fix that right now.

@renovatorruler
Copy link
Author

So the biggest size is coming from Typescript? I am not sure I understand this specific usage here, but shouldn't typescript be build time dependency and not runtime? Like compile Typescript code to Javascript and you'd have a much leaner file? I could be wrong though.

Link/Archive
image

@scottburch
Copy link
Collaborator

scottburch commented Jun 1, 2020 via email

@scottburch
Copy link
Collaborator

scottburch commented Jun 1, 2020

I ran a report from the bundler. The included files that mostly have to do with blockchain and encryption. There is just a lot of them.

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

3 participants