Smaller JS package sizes!
See original GitHub issueI think we’ve beaten the world record of biggest JS bundles. Let’s contain this.
State of things:
$ du dist/*|sort -n -r | head
14640 dist/dashboard.13e463a9f8b8738180b3.entry.js
14032 dist/explore.248040abcbbaf60a59b9.entry.js
6072 dist/sqllab.ea495dee48ee855009f6.entry.js
2296 dist/addSlice.66d103d9c1275427d857.entry.js
2064 dist/profile.90e39d37579af32c6091.entry.js
2040 dist/welcome.41f4f4057ba02c52f350.entry.js
1072 dist/common.7ece420589d15408bce6.entry.js
520 dist/theme.ed0d61cb90e4574ee3da.css
216 dist/89889688147bd7575d6327160d64e760.svg
160 dist/dashboard.13e463a9f8b8738180b3.css
Ideas:
- break out a
superset-visualizations
npm package with sub packages for each visualizations sets, one fordeckGL
-related visualizations, one for nvd3-related, and any other big chunks separately. This will also pave the way towards asuperset-embedables
package - the biggest win is to break out the deckgl related packages (luma.gl, mapbox.gl, deck.gl, …)
- in the main app, visualizations bundles should be lazy loaded
- working viz out of
explore
anddashboard
, should make those much leaner - keep
theme.js
we still need that has standalone - maybe add a
common.js
with things likeReact
and commonly used utilities that we need across the board - …
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
5 Methods to Reduce JavaScript Bundle Size - Bits and Pieces
5 Methods to Reduce JavaScript Bundle Size · 1. Code Splitting with Webpack · 2. Using Webpack Plugins for Tree Shaking · 3....
Read more >Bundlephobia | Size of npm dependencies
Bundlephobia helps you find the performance impact of npm packages. Find the size of any javascript package and its effect on your frontend...
Read more >Small Bundles, Fast Pages: What To Do With Too Much ...
This post will explain why bundle size matters and recommend tools and processes you can follow to monitor, visualise, and most importantly, ...
Read more >Slimming down your bundle size - LogRocket Blog
The lower the size of the JavaScript bundle, the faster the page can be available to the users.
Read more >Writing JS libraries less than 1TB size - Anton Kosykh - Medium
Writing JS libraries less than 1TB size ... Because the most part of your bundle size will be filled with specific bundler functions,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
think I have a proof of concept (this is just lazy loading the visualizations, could do more with mathjs, etc). dashboard + explore are cut in half on their own.
before
after
Hi, I am looking for improving the performance my superset charts. Recently we upgraded our superset to the latest version. We are using MySQL database both as data source for charts and as the meta-database. We have also optimized the queries such that they don’t take not more then 1-2 seconds in running. We are using charts in a standalone mode inside iframes, then those iframes are integrated with our angular application. For the purpose of applying filters we are editing the chart-url and that is being handled from the angular side. We did this sort of implementation as we were looking for a more flexible orientation of charts inside our web applications. However, we are currently facing performance issues in our production environment(which is set up with gunicorn, apache server for reverse proxy and superset installation on a centos 7 remote server). I am currently looking for some performance enhancements from superset UI side as the chart rendering is taking a long time(around 2-3 minutes). We have approximately 10-15 charts in each web-page.
Can anyone from the community please let me know if this current issue has been fixed with superset-ui plugins implementation. If yes, can you suggest me any alternative to improve the performance and load time of the charts.
Thanks.