iOS WKWebView加载网站的速度非常慢

时间:2020-03-31 01:27:08

标签: android ios webview wkwebview

我有一个指向相同网址的iOS应用和一个Android应用。但是初始加载速度却大不相同。加载android应用大约需要5秒钟,而加载iOS应用则需要9-10秒钟。两个应用程序发送的请求也完全不同(下面列出了Web服务器日志)。有没有人对此问题有任何想法?

iOS WKWebView请求

* 2020-03-31T00:35:01.405Z GET / 304 0.448 ms - b 
* 2020-03-31T00:35:01.509Z GET /polyfills.7d08ee96affa1a6aaab0.js 304 3.700 ms - b 
* 2020-03-31T00:35:01.510Z GET /runtime.0e477b55f83b8dc4a886.js 304 0.725 ms - b 
* 2020-03-31T00:35:01.512Z GET /scripts.4d10c1b333ada0ab6568.js 304 0.859 ms - b 
* 2020-03-31T00:35:01.512Z GET /styles.adab33f8937af935a146.js 304 0.578 ms - b 
* 2020-03-31T00:35:05.214Z GET /main.cad6117051cd27301c82.js 200 0.673 ms 10846581 b 
* 2020-03-31T00:35:09.618Z GET /0.633dfc394578043b58ce.js 304 0.581 ms - b 
* 2020-03-31T00:35:09.641Z GET /4.9f99a44e8efcf589e0f6.js 304 2.230 ms - b 
* 2020-03-31T00:35:09.641Z GET /6.30d366da3eb407552718.js 304 1.974 ms - b 
* 2020-03-31T00:35:09.651Z GET /2.6243b196ff453a16eb64.js 304 2.813 ms - b 
* 2020-03-31T00:35:09.651Z GET /9.14b73791ae4f6be3b967.js 304 2.524 ms - b 
* 2020-03-31T00:35:09.651Z GET /14.c4c996bc55f9f9986a7b.js 304 2.292 ms - b 
* 2020-03-31T00:35:09.651Z GET /12.c1559b3da402351a2a2c.js 304 2.083 ms - b 
* 2020-03-31T00:35:09.652Z GET /19.9c5a6ccb642f514d8f60.js 304 1.863 ms - b 
* 2020-03-31T00:35:09.652Z GET /40.ca47c943eee385c99b37.js 304 1.664 ms - b 
* 2020-03-31T00:35:09.653Z GET /41.410168ed955561cf80f4.js 304 0.536 ms - b 
* 2020-03-31T00:35:09.653Z GET /common.b3fc19711bcf5e7a4a9f.js 304 0.331 ms - b 
* 2020-03-31T00:35:10.845Z GET /23.a9c14806f6c4a3645629.js 304 0.533 ms - b 
* 2020-03-31T00:35:11.119Z GET /squizify_flat.af496009dc3c5d0b7ed1.jpg 304 0.364 ms - b 
* 2020-03-31T00:35:11.123Z GET /assets/Poppins-Regular.otf 304 0.305 ms - b 

Android Webview请求

* 2020-03-31T00:36:25.581Z GET /squizify_flat.af496009dc3c5d0b7ed1.jpg 304 0.363 ms - b
* 2020-03-31T00:36:27.247Z GET /ngsw-worker.js 304 0.366 ms - b
* 2020-03-31T00:36:30.541Z GET /ngsw.json?ngsw-cache-bust=0.009570631692525478 200 0.575 ms 30252 b
* 2020-03-31T00:36:31.534Z GET /ngsw.json?ngsw-cache-bust=0.21998978028749305 200 0.495 ms 30252 b

0 个答案:

没有答案