8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
[TOC]
以前项目做过相关的专项,优化 webview 的加载。
合理使用 WebView 提供的几种缓存模式
浏览器缓存,内置实现
webSettings.setAppCacheEnabled(true) webSettings.setAppCacheMaxSize(yourCacheSize) webSettings.setAppCachePath(yourCacheDirPath)
shouldInterceptRequest: 拦截静态资源进行缓存
DOM Storage 缓存:setDomStorageEnabled(true)
Web SQL Database 缓存:
webSettings.setDatabaseEnabled(true) webSettings.setDatabasePath(yourCacheDirPath)
Indexed Database 缓存:webSettings.setJavaScriptEnabled(true)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Android WebView Optimization
[TOC]
以前项目做过相关的专项,优化 webview 的加载。
Html 加载流程
加载流程各节点耗时分析优化
客户端优化
合理使用 WebView 提供的几种缓存模式
浏览器缓存,内置实现
webSettings.setAppCacheEnabled(true)
webSettings.setAppCacheMaxSize(yourCacheSize)
webSettings.setAppCachePath(yourCacheDirPath)
shouldInterceptRequest: 拦截静态资源进行缓存
DOM Storage 缓存:setDomStorageEnabled(true)
Web SQL Database 缓存:
webSettings.setDatabaseEnabled(true)
webSettings.setDatabasePath(yourCacheDirPath)
Indexed Database 缓存:webSettings.setJavaScriptEnabled(true)
总结
The text was updated successfully, but these errors were encountered: