diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-05-30 17:33:38 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-06-04 20:20:50 +0200 |
commit | fa85337a62f36696f5a50e1a6a794b8909bb8d44 (patch) | |
tree | aa14f5e1445aba62bc0d1a3813b00748fd0610b8 /server/sonar-web/public | |
parent | 349b6fdb12230bf5b882367477bdac238c93a4ec (diff) | |
download | sonarqube-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.html | 8 |
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> <% } %> |