HarmonyOS NEXT开发教程:加速web页面访问
在日常app开发中,访问web页面是很常见的功能,在鸿蒙系统中有多种方案来加速web页面的访问,提升用户体验。
首先,可以在Web组件的onAppear方法中对要加载的页面进行预链接,比如:
Web({ src: 'https://www.example.com/', controller: this.webviewController })
.onAppear(() => {
webview.WebviewController.prepareForPageL...
changwei.hashnode.dev1 min read