mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 10:15:31 +00:00
Give ourselves half a second to load before we show the loading indicator
This commit is contained in:
parent
f65d0708ea
commit
27c876fed1
1 changed files with 10 additions and 1 deletions
11
index.html
11
index.html
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
<body>
|
||||
<div id='app'>
|
||||
<div id="loading">
|
||||
<div id="loading" style="display: none">
|
||||
Loading<span class="ellipsis-anim"><span>.</span><span>.</span><span>.</span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -75,6 +75,15 @@
|
|||
<img inline src="images/share/github.svg" />
|
||||
</a>
|
||||
</p>
|
||||
<script type="text/javascript">
|
||||
// If we can load faster than half a second, don't bother showing the loading indicator.
|
||||
setTimeout(function() {
|
||||
var loading = document.getElementById('loading');
|
||||
if (loading != null) {
|
||||
loading.style.display = 'block';
|
||||
}
|
||||
}, 500)
|
||||
</script>
|
||||
<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="7py29249dpeddu8" async></script>
|
||||
<!-- Scripts get injected by html-webpack-plugin -->
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue