From 07ac939c479bc4776caa549dd6298a629c4e1733 Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 21 May 2024 09:59:16 +0800 Subject: [PATCH] * index: optimize for opening page from cache. --- module/index/js/index.ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/index/js/index.ui.js b/module/index/js/index.ui.js index d700d50ab7..660b7eab2f 100644 --- a/module/index/js/index.ui.js +++ b/module/index/js/index.ui.js @@ -123,7 +123,7 @@ function openApp(url, code, options) { try { - iframe.contentWindow.$(iframe.contentDocument).one('pageload.app', () => setTimeout(finishLoad, 150)); + iframe.contentWindow.$(iframe.contentDocument).one('pageload.app pagecaheload.app', finishLoad); setTimeout(finishLoad, 10000); } catch(e){finishLoad()}