mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 04:50:14 +08:00
improve (index.html): cleanup the index.html to win in build size
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user