-
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
[Uptime] Reduce miscellaneous uptime bundle size #70632
Conversation
@elasticmachine merge upstream |
Pinging @elastic/uptime (Team:uptime) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
triggers_actions_ui code LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM WFG
Thanks for removing all the lodash references as well.
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
async chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
Co-authored-by: Elastic Machine <[email protected]>
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Shahzad <[email protected]> Co-authored-by: Justin Kambic <[email protected]>
Summary
Fixes: elastic/uptime#232
This PR reduces uptime page load bundle size by introducing lazy loading for dependent code
Ultimate dependent diagram looks like this for uptime.plugin.js bundle. Bundle size get's reduced by 95%.
Testing
This doesn't change any functionality or tests, few things to look out for, make sure, uptime data is displayed on obsv overview page. User can edit alerts from alerting app.
Uptime works as expected.
Testing Bundle Size
Create webpack stats
node scripts/build_kibana_platform_plugins.js --no-core --no-examples --profile
with and without --distFind the Uptime bundle in
x-pack/plugins/apm/target/public/uptime.plugin.js
. This should be as small as possible.Analyze
x-pack/plugins/uptime/target/public/stats.json
file using one of the two:upload stats.json to chrisbateman.github.io/webpack-visualizer
run npx webpack-bundle-analyzer x-pack/plugins/apm/target/public/stats.json
This PR was inspired by #67654