-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2019-08-16:谈谈如何对WebView进行优化? #123
Comments
我先来,最简单的,设置先加载文字,然后在加载图片,会快一点😂,然后就是体验问题了,你可以自定义一些loading让加载的时候好看一点。 |
这是美图webview优化我感觉这是个方法 |
太高深的我不懂,但我晓得webview木有加载超时的回调监听,需要自己开定时器哦。 |
这是美图的WebView我优化感觉这的英文个方法 |
可以试下以上的方法进行优化:
|
用户体验方面,可以在顶部显示一个一个progress,显示网页加载进度,而不是一个白屏呈现给用户看。 设置一个全局的WebView,减少WebView初始化的时间,避免后续操作的堵塞 |
1、webview白屏优化 |
chrome tabs据说要比webview好,可以在fallback时使用webview |
webview加载的大致分为三个阶段: 针对第一个阶段优化: 针对第二阶段优化: |
优秀文章如何设计一个优雅健壮的Android WebView?(上) |
No description provided.
The text was updated successfully, but these errors were encountered: