mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
Optimize progress bar again
This commit is contained in:
parent
299c31dff9
commit
6463dd3bae
@ -125,6 +125,7 @@ export function renderLoading ({ loaded, total }) {
|
||||
|
||||
if (num >= 95) {
|
||||
clearTimeout(renderLoading.cacheTImeout)
|
||||
CACHE['loading'].style.width = '100%'
|
||||
renderLoading.cacheTImeout = setTimeout(_ => {
|
||||
CACHE['loading'].style.opacity = 0
|
||||
CACHE['loading'].style.width = '0%'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user