-
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
[kibanaReact] Reduce page load bundle to under 100kB #95865
Comments
Pinging @elastic/kibana-app-services (Team:AppServices) |
This needs discussion on how to approach it. App Services team is the main maintainer of the Possible solutions would be:
|
Related: #95866 (comment) |
This is the current state of an initial bundle of Most of these are components that don't have a dependency on other Kibana parts. We can code split those in two ways:
I think exporting those into a package is preferable because it will allow consumers to import components directly into their async chunks and control the loading state how they prefer. I think will also produce less boilerplate code than a lazy wrapper inside a plugin approach. I think in general it makes sense to leave in kibana_react only what has a dependency on other plugins or core. e.g. @elastic/kibana-operations, could you please review this ^^, does it make sense, or are there other nuances?
Q2: Are there any caveats with |
@Dosant I totally agree that we should break these into little packages. There are going to be some hurdles to gettin this work but I hope that my PR against #114129 resolves most of them, and that we can use that as a blueprint for the rest of the packages. Please let us help you get this broken into packages, it's the way we hope most of this will go in the future. |
KibanaReact is under |
For details, refer to the meta issue at #95853
The
kibanaReact
plugin is currently 118,239 bytes. To consider this issue closed, the limits.yml should be updated with the value under 100000.The text was updated successfully, but these errors were encountered: