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

Investigate methods of reducing the bundle size #284

Open
anthonydillon opened this issue Jan 16, 2020 · 2 comments
Open

Investigate methods of reducing the bundle size #284

anthonydillon opened this issue Jan 16, 2020 · 2 comments

Comments

@anthonydillon
Copy link
Contributor

Look into reducing the size and add lazy loading of charting dependencies to reduce the initial bundle size.

@hatched
Copy link
Contributor

hatched commented Jan 16, 2020

Just putting this here as we may be able to use this. https://github.com/webpack-contrib/webpack-bundle-analyzer

@huwshimi
Copy link
Contributor

This is what the codebase currently looks like (using npx -y source-map-explorer 'build/static/js/*.js'):

Screen Shot 2022-09-19 at 12 41 11 pm

A large chunk of the dependencies are for bakeryjs (which will all appears as part of the bakery dependency once we upgrade to 1.2.0).

Look into reducing the size and add lazy loading of charting dependencies to reduce the initial bundle size.

We built a doughnut chart for maas-ui that doesn't require d3 (though we'd also need to change how the topology component works as that uses d3 as well).

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

No branches or pull requests

4 participants