From d171a6d30aafdce594e6971ae3df1c5f12aca684 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sat, 15 Jul 2023 12:29:46 +0530 Subject: [PATCH] perf: lazy load sidebar stats Sidebar stats take a huge time to load on large tables and it's not required everytime you load the page. Best to only trigger it when user clicks on "tags" (or other stats filter) This is exactly how assignment and other filters work, so no need for sidebar stats to work differently. --- frappe/public/js/frappe/list/list_view.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/frappe/public/js/frappe/list/list_view.js b/frappe/public/js/frappe/list/list_view.js index 68030223ca..81a74c0af5 100644 --- a/frappe/public/js/frappe/list/list_view.js +++ b/frappe/public/js/frappe/list/list_view.js @@ -587,9 +587,6 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { `); this.setup_new_doc_event(); - if (this.list_view_settings && !this.list_view_settings.disable_sidebar_stats) { - this.list_sidebar && this.list_sidebar.reload_stats(); - } this.toggle_paging && this.$paging_area.toggle(true); }