-
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
[meta] All page load bundle must be under 100kB #95853
Comments
Pinging @elastic/kibana-operations (Team:Operations) |
Let's update limit values https://github.com/elastic/kibana/blob/master/packages/kbn-optimizer/limits.yml at the part of this issue. There are some numbers outdated there. |
@danielmitterdorfer this is probably something we want to move to the performance working group and could use some help pushing. This is really something that ALL web applications deal with and something that should be no different for anyone developing plugins in Kibana. 100kB is really just the bare minimum considering there is 160+ plugins. |
@tylersmalley and @danielmitterdorfer On a side note, I do think that we need to justify and prove whether bundle splitting is a good strategy in the long term in our performance tests. |
One of our goals is to keep Kibana fast. A large part of this is to reduce the amount of Javascript that is downloaded and parsed on each page load. We have for some time provided bundle size metrics on pull requests. From the docs:
Since these files are loaded on every page load, it's important to keep this size to minimum. We have documentation to assist with reducing these bundle sizes through code splitting.
Here are some examples of plugins implementing code-splitting:
visTypeTimeseries
bundle size #64631visTypeMarkdown
bundle size #64638visTypeVega
bundle size #64749lens
bundle size #64769visTypeTable
bundle size #64778security
&spaces
plugin bundle sizes #64192maps
bundle size (code splitting) #64317uptime
bundle size #65257While we do have the limits.yml, we would like to institute a ceiling of 100k and in order to accomplish this, we need all plugins to get under that limit.
The text was updated successfully, but these errors were encountered: