# Kibana UI takes over 10 seconds on initial load

**URL:** <https://discuss.elastic.co/t/kibana-ui-takes-over-10-seconds-on-initial-load/241662>\
**Category:** Kibana\
**Created:** [July 17, 2020, 2:28pm UTC](https://discuss.elastic.co/t/kibana-ui-takes-over-10-seconds-on-initial-load/241662 "2020-07-17T14:28:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gavin\_Clark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gavin_clark/32/47826_2.png) [@Gavin\_Clark](https://discuss.elastic.co/u/Gavin_Clark)\
**Post date:** [July 17, 2020, 2:28pm UTC](https://discuss.elastic.co/t/kibana-ui-takes-over-10-seconds-on-initial-load/241662/1 "2020-07-17T14:28:33Z")

</div>

Hey team, long time reader, first time poster. We have a weird issue ever since upgrading to Kibana and elasticsearch 7.7.1. What we'll see is sometimes the UI(doesn't matter on module, could be Discover, Dashboard, Management etc) will sit on the Kibana loading screen for as long as 15 seconds before loading the page. Any subsequent requests are fast once the page is loaded so it doesn't appear to be a data issue but a UI issue. We see multiple .js bundles taking a few seconds each during this time.

 ![frigginsloooow](https://us1.discourse-cdn.com/elastic/original/3X/d/e/de6a9f9afa9c58458477a923e0117eedf5c51ce0.png)

On times where the page loads quickly it does not download the bundles in the attached screenshot. Are these items sometimes cached and sometimes not? What can I check to see why the UI is slow to load initially?

We did not have this issue on 6.8.9 and have changed nothing on our kibana instance(t3.large).

---

<div class="post-metadata">

**Author:** ![cheiligers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheiligers/32/73114_2.png) [@cheiligers](https://discuss.elastic.co/u/cheiligers)\
**Post date:** [July 17, 2020, 9:55pm UTC](https://discuss.elastic.co/t/kibana-ui-takes-over-10-seconds-on-initial-load/241662/2 "2020-07-17T21:55:03Z")

</div>

@Gavin_Clark Congratulations on your first post!

The short answer is that Kibana on 7.7.1 effectively contains many smaller apps and each has to load its own bundle.  
The good news is that the _entire_ codebase (over a million lines of code) has been migrated (refactored) and performance has improved. You can read more about it [here](https://www.elastic.co/blog/kibana-platform-migration-lessons-in-large-scale-cross-team-collaboration)

---

<div class="post-metadata">

**Author:** ![Gavin\_Clark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gavin_clark/32/47826_2.png) [@Gavin\_Clark](https://discuss.elastic.co/u/Gavin_Clark)\
**Post date:** [July 20, 2020, 1:28pm UTC](https://discuss.elastic.co/t/kibana-ui-takes-over-10-seconds-on-initial-load/241662/3 "2020-07-20T13:28:37Z")

</div>

I'm excited to here that they refactored and improved performance, doing that for an entire codebase is no small task.

The issue I'm seeing is that this has actually made things significantly slower, specifically the initial UI load. Are there things we can disable(since you say there are many smaller apps each loading their own bundle) to try and get some performance back? If it remains this slow we'll have to revert back to a less secure version due to complaints from our engineers on the speed.

---

<div class="post-metadata">

**Author:** ![cheiligers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheiligers/32/73114_2.png) [@cheiligers](https://discuss.elastic.co/u/cheiligers)\
**Post date:** [July 20, 2020, 2:32pm UTC](https://discuss.elastic.co/t/kibana-ui-takes-over-10-seconds-on-initial-load/241662/4 "2020-07-20T14:32:56Z")

</div>

Hey Gavin,  
When you say 'things we can disable', the answer depends on how you're running Kibana. If you're running from the source code (cloned repo), then you could look into the optimization and bundling processes within the root of the project. I'm afraid I'm not too familiar with the intricacies on the older versions.  
If you can, rather than reverting back to a previous version, try upgrading instead to 7.8! That's the first build where we saw significant load time improvements.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 17, 2020, 2:32pm UTC](https://discuss.elastic.co/t/kibana-ui-takes-over-10-seconds-on-initial-load/241662/5 "2020-08-17T14:32:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
