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

Reduce bundle size #747

Open
5 tasks
robertlong opened this issue Sep 10, 2019 · 0 comments
Open
5 tasks

Reduce bundle size #747

robertlong opened this issue Sep 10, 2019 · 0 comments
Labels
enhancement work that enhances an existing feature

Comments

@robertlong
Copy link
Contributor

Spoke is currently very large. The project page vendor bundle is 3.2mb. There are a number of heavy modules in the Spoke code base right now that can either be removed, rewritten, or tree-shaken.

Screen Shot 2019-09-10 at 2 23 55 PM

Candidates for removal:

  • HLS.js: if we can get video thumbnails for live streams or just use a static image, that should be good enough.
  • SketchfabZipLoader: If we have a backend service that proxied Sketchfab glTF zip requests and returned a glb instead then we could get rid of this module and speed up project load times immensely.
  • Recast: if we can get rid of nav-mesh generation then we can get rid of Recast. This seems unlikely to happen soon.

Candidates for rewriting:

  • react-color: This package includes react-css which includes all of lodash. We're only using one of the pickers (Sketch Picker) and we can probably rewrite this to use styled-components instead.

Candidates for tree-shaking:

@robertlong robertlong added the enhancement work that enhances an existing feature label Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement work that enhances an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant