Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upReduce browser bundle size #91
Closed
Comments
This comment has been minimized.
This comment has been minimized.
|
Okay -- after excluding many deps, the bundle size is down to less than 55KB (minified and gzipped), which is totally acceptable. Still, I'll leave this issue open because we can still do better. |
This comment has been minimized.
This comment has been minimized.
|
After removing all the lodash modules and replacing with simpler modules, size is down to 42KB. |
This comment has been minimized.
This comment has been minimized.
|
Okay -- all the low-hanging fruit that I could find is now fixed. Current size: 42kb. Pretty small for an entire torrent client actually! |
This comment has been minimized.
This comment has been minimized.
|
Amazingly small. Kudos, sir. |
This comment has been minimized.
This comment has been minimized.
|
Nice! |
This comment has been minimized.
This comment has been minimized.
|
Wow Nice! |
This comment has been minimized.
This comment has been minimized.
|
kudos! |
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We can exclude a bunch of npm dependencies that are used in node, but not in the browser.
git-sha1instead ofcrypto(6kb vs 86kb uncompressed)readable-streamandstreamare both included. Exclude one of them (~100kb uncompressed)http-https(189kb uncompressed)concat-stream(189kb uncompressed)load-ip-set(404kb uncompressed)mime-componentfromfilestream(35kb uncompressed, see DamonOehlman/filestream#7, sent PR DamonOehlman/filestream#8)