aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/public
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-05-30 17:33:38 +0200
committerSonarTech <sonartech@sonarsource.com>2018-06-04 20:20:50 +0200
commitfa85337a62f36696f5a50e1a6a794b8909bb8d44 (patch)
treeaa14f5e1445aba62bc0d1a3813b00748fd0610b8 /server/sonar-web/public
parent349b6fdb12230bf5b882367477bdac238c93a4ec (diff)
downloadsonarqube-fa85337a62f36696f5a50e1a6a794b8909bb8d44.tar.gz
sonarqube-fa85337a62f36696f5a50e1a6a794b8909bb8d44.zip
SONAR-10833 Reduce loading waterfall
Diffstat (limited to 'server/sonar-web/public')
-rw-r--r--server/sonar-web/public/index.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/sonar-web/public/index.html b/server/sonar-web/public/index.html
index 4da3597a841..812681b41f7 100644
--- a/server/sonar-web/public/index.html
+++ b/server/sonar-web/public/index.html
@@ -23,7 +23,7 @@
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-TileImage" content="%WEB_CONTEXT%/mstile-512x512.png" />
- <title>Loading...</title>
+ <title>%INSTANCE%</title>
<% for (let css of htmlWebpackPlugin.files.css) { %>
<style><%= compilation.assets[css].source() %></style>
@@ -37,7 +37,11 @@
<span class="global-loading-text">Loading...</span>
</div>
</div>
- <script>window.baseUrl = '%WEB_CONTEXT%';</script>
+ <script>
+ window.baseUrl = '%WEB_CONTEXT%';
+ window.serverStatus = '%SERVER_STATUS%';
+ window.instance = '%INSTANCE%';
+ </script>
<% for (let chunk in htmlWebpackPlugin.files.chunks) { %>
<script src="%WEB_CONTEXT%/<%= htmlWebpackPlugin.files.chunks[chunk].entry %>"></script>
<% } %>