Skip to content

Commit

Permalink
Make changes as per Spencer's suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Feb 23, 2015
1 parent 19817b9 commit fb2dae5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/kibana/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
<img width="128" src="images/initial_load.gif">
<h1>
<strong>Kibana</strong>
<script>
if (location.href.indexOf('?embed') < 0) document.write('<small>is loading. Give me a moment here. I\'m loading a whole bunch of code. Don\'t worry, all this good stuff will be cached up for next time!</small>');
</script>
<small id="cache-message">is loading. Give me a moment here. I'm loading a whole bunch of code. Don't worry, all this good stuff will be cached up for next time!</small>
</h1>
</center>
</div>
Expand All @@ -35,6 +33,9 @@ <h1>
<script src="bower_components/requirejs/require.js?_b=@@buildNum"></script>
<script src="require.config.js?_b=@@buildNum"></script>
<script>
var showCacheMessage = location.href.indexOf('?embed') < 0 && location.href.indexOf('&embed') < 0;
if (!showCacheMessage) document.getElementById('cache-message').style.display = 'none';

if (window.KIBANA_BUILD_NUM.substr(0, 2) !== '@@') {
// only cache bust if this is really the build number
require.config({ urlArgs: '_b=' + window.KIBANA_BUILD_NUM });
Expand Down

0 comments on commit fb2dae5

Please sign in to comment.