improve (index.html): cleanup the index.html to win in build size

This commit is contained in:
Mickael Kerjean
2019-04-30 22:22:31 +10:00
parent 8608c91e1f
commit ad1f2358e7
2 changed files with 108 additions and 268 deletions

View File

@ -37,7 +37,7 @@ window.addEventListener("DOMContentLoaded", () => {
Config.refresh().then(() => {
const timeSinceBoot = new Date() - window.initTime;
if(timeSinceBoot >= 2000){
if(timeSinceBoot >= 1500){
const timeoutToAvoidFlickering = timeSinceBoot > 2500 ? 0 : 500;
return waitFor(timeoutToAvoidFlickering)
.then(removeLoaderWithAnimation)