perf: 缩短跳转后的关闭延迟以消除卡顿感
This commit is contained in:
2
popup.js
2
popup.js
@@ -532,7 +532,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
// 提供短暂的“清理中...”视觉反馈后关闭插件
|
// 提供短暂的“清理中...”视觉反馈后关闭插件
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.close();
|
window.close();
|
||||||
}, 1500); // 保持 1500ms 反馈后关闭,也可改为更短如 200ms,为保持原逻辑体验暂设 1500ms
|
}, 100); // 极短延迟后关闭,消除卡顿感
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user