From ba69a1e19231e0fe15dac684a8578cd51a47a1c6 Mon Sep 17 00:00:00 2001 From: Viktar Donich Date: Tue, 1 Nov 2016 14:12:07 -0700 Subject: [PATCH] Coalesce requests within change view Fetch more data with GET /change/detail instead of multiple separate GET requests. Fetch independent resources in parallel. Fixed change actions jumping around. First page load to full page down by ~25% (1050ms vs 1400ms on localhost, expect even more on prod server) Timeline before and after: http://imgur.com/a/oEFdD Bug: Issue 4406 Change-Id: Ib7c3c160513cbb29aad89fedabfacbfd271abf22 --- .../gr-change-actions/gr-change-actions.html | 2 +- .../gr-change-actions/gr-change-actions.js | 20 +++++----- .../change/gr-change-view/gr-change-view.html | 1 + .../change/gr-change-view/gr-change-view.js | 40 +++++++++---------- .../gr-change-view/gr-change-view_test.html | 9 ++++- .../gr-rest-api-interface.html | 1 - .../gr-rest-api-interface.js | 6 ++- 7 files changed, 41 insertions(+), 38 deletions(-) diff --git a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html index 30e9e86676..bd96c2f2cc 100644 --- a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html +++ b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.html @@ -76,7 +76,7 @@ limitations under the License. on-tap="_handleActionTap"> -
+