# Lazy load dashboard or load the widgets in dashboard on demand

**URL:** https://discuss.elastic.co/t/lazy-load-dashboard-or-load-the-widgets-in-dashboard-on-demand/297511
**Category:** Kibana
**Created:** [February 17, 2022, 3:19pm UTC](https://discuss.elastic.co/t/lazy-load-dashboard-or-load-the-widgets-in-dashboard-on-demand/297511 "2022-02-17T15:19:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pranay\_jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranay_jain/32/92747_2.png) [@pranay\_jain](https://discuss.elastic.co/u/pranay_jain)
#### Post date: [February 17, 2022, 3:19pm UTC](https://discuss.elastic.co/t/lazy-load-dashboard-or-load-the-widgets-in-dashboard-on-demand/297511/1 "2022-02-17T15:19:33Z")

</div>

I have a dashboard with 20+ visualizations and it takes some time to load all the widgets.  
So is there a way to avoid loading all the widgets upfront but rather load the widgets on demand from a pool of available widgets.  
Or  
Is there a way to lazy load the widgets such that the top 3 loads first and the rest later?

This is so that our customers don't wait for a long time to view the dashboard.

---

<div class="post-metadata">

### Author: ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)
#### Post date: [February 23, 2022, 8:28am UTC](https://discuss.elastic.co/t/lazy-load-dashboard-or-load-the-widgets-in-dashboard-on-demand/297511/2 "2022-02-23T08:28:29Z")

</div>

What version of kibana are you using? Do you use the custom widgets or only Kibana built-in visualizations? Unfortunately right now there's no control over how you load it, but there are some improvements in the newest versions.

---

<div class="post-metadata">

### Author: ![pranay\_jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranay_jain/32/92747_2.png) [@pranay\_jain](https://discuss.elastic.co/u/pranay_jain)
#### Post date: [February 23, 2022, 11:49am UTC](https://discuss.elastic.co/t/lazy-load-dashboard-or-load-the-widgets-in-dashboard-on-demand/297511/3 "2022-02-23T11:49:49Z")

</div>

We use Kibana version 7.16.3. We have a dashboard which has both Vega visuals and Kibana built-in widgets. Can you please point me to the documentation where these improvements are described?  
Thanks.

---

<div class="post-metadata">

### Author: ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)
#### Post date: [February 23, 2022, 10:06pm UTC](https://discuss.elastic.co/t/lazy-load-dashboard-or-load-the-widgets-in-dashboard-on-demand/297511/4 "2022-02-23T22:06:54Z")

</div>

By improvements I meant continuous efforts towards limiting bundle sizing, caching ES requests, both in separate visualizations and in the dashboard, some changes of architecture etc. It's hard to pinpoint a single issue describing it, one of them would be [here](https://github.com/elastic/kibana/issues/58280).

I see that you're on one of the newest version so the slowness probably won't improve much if you upgrade.

According to [this issue](https://github.com/elastic/kibana/pull/99880) lazy load should already work though in Dashboard, but it tries rendering everything in the window view. I am afraid the better solution doesn't exist at this point.

---

<div class="post-metadata">

### Author: ![pranay\_jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranay_jain/32/92747_2.png) [@pranay\_jain](https://discuss.elastic.co/u/pranay_jain)
#### Post date: [February 25, 2022, 12:00pm UTC](https://discuss.elastic.co/t/lazy-load-dashboard-or-load-the-widgets-in-dashboard-on-demand/297511/5 "2022-02-25T12:00:15Z")

</div>

Ok got it. thank you for your response !!

---

<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: [March 25, 2022, 12:01pm UTC](https://discuss.elastic.co/t/lazy-load-dashboard-or-load-the-widgets-in-dashboard-on-demand/297511/6 "2022-03-25T12:01:09Z")

</div>

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