Files
gerrit/polygerrit-ui/app/elements/shared/gr-rest-api-interface
Patrick Hiesel 61f54a0a09 Ship initally required data in index.html
Gerrit's UI dispatches a number of requests to the server when it
initially loads. These are to obtain server configs, server version and
account data. These round trips add additional time when the App starts.

This commit ships the most relevant data in-line directly in index.html.
On the server, this is almost for free because when rendering
index.html, we already authenticated the user, so inline this data is
cheap. The server information is static, so it is also cheap to inline.

We expect this to help reduce the App's startup on slow networks.

We render the data using Gson and Soy. Soy has a predefined ordainer to
render JSON data. We use this to safely escape values.

Change-Id: I8e9cc077fa7212ca782b1ec334d41b872a3fd470
2019-05-28 10:46:58 +02:00
..
2019-05-23 17:02:28 +02:00