-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[canvas] Reduce page load bundle to under 100kB #95857
Comments
Pinging @elastic/kibana-presentation (Team:Presentation) |
Canvas is now over half a megabyte. Any chance to get this work on the roadmap to reduce the initial page load of Canvas. This is loaded on ALL requests to Kibana and affects the overload page-load of the application. |
Currently 489,159kB |
We should prioritize this, since all kibana users are affected according to #84793 (comment) |
@ThomThomson seems like this is no longer the case (?) |
See this PR for more info. Unless something unexpected happens with that, it looks like the limit should actually have been |
Closing as the canvas page load bundle is 29kb |
For details, refer to the meta issue at #95853
The
canvas
plugin is currently 528,634 bytes. To consider this issue closed, the limits.yml should be updated with the value under 100000.This is an issue to track any bits of canvas that can help reduce main entry bundle size
LoDash is 24% of the bundle. I think we load the full lodash, so we should probably switch to loading the individual functions we need and that would be a big quick win.I think this was handled by moving LoDash to a shared bundleHandlebars is 8%. I think we use handlebars when compiling our markdown? That can probably be pulled out of the main bundle and not loaded until Canvas is loaded.Handled by [Canvas] Move Handlebars and Flot dependencies out of main bundle #78542Flot is also about 8%. That should also be able to be pulled out of the main bundle.Handled by [Canvas] Move Handlebars and Flot dependencies out of main bundle #78542The text was updated successfully, but these errors were encountered: