kibana icon indicating copy to clipboard operation
kibana copied to clipboard

[ObservabilityAIAssistant] Optimize initial load bundles

Open tonyghiani opened this issue 5 months ago • 0 comments

📓 Summary

Part of #191599

The Observability AI Assistant App plugin loads an icon in the navbar to access the AI assistant. The issue, in this case, is that, even if the icon is not visible for a specific app, the visibility check occurs too late in the react tree, which implies loading all the code used for the AIAssistant control even when this is not visible for the user.

Image

This can be potentially fixed by moving the assertion earlier in the rendering step, and applying correctly the lazy loading on the LazyNavControl component.

tonyghiani avatar Aug 28 '24 11:08 tonyghiani