mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-26 10:11:00 +08:00
Optimize progress bar again
This commit is contained in:
@@ -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%'
|
||||
|
||||
Reference in New Issue
Block a user