-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
848bb09
commit 51c92fd
Showing
2 changed files
with
43 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
### Android Webview 实践 | ||
|
||
#### Hybrid 应用 native 与 js 如何互相调用 | ||
|
||
#### WebView 优化 | ||
|
||
1. 进程化-> Webview 对象池 -> Webview 对象复用 (缺点是进程间的通信) | ||
2. Webview url host 和客户端 Api host 保持一致 -> DNS 缓存复用 / Webview 网络请求被客户端托管 | ||
3. H5 离线包:提前下载离线的 H5 数据包,通过 WebView 加载离线包实现 Webview 秒开 |