android - 优化webview的速度过程记录

访问量: 88

我们的android应用,在点击 到展示, 总共耗时11秒(不测不知道) 

08-12 10:59:12.463 32501-32501/? I/art: Late-enabling -Xcheck:jni
08-12 10:59:12.893 32501-32501/com.yunbi D/ActivityThread: installProvider: context.getPackageName()=com.yunbi
08-12 10:59:12.896 32501-32501/com.yunbi I/InstantRun: starting instant run server: is main process
08-12 10:59:12.899 32501-32501/com.yunbi D/== in Application: Application created

..................

08-12 10:59:23.528 32501-32501/com.yunbi D/BaseWebViewFragment: 取消小菊花开始...
08-12 10:59:23.528 32501-32501/com.yunbi W/BaseWebViewFragment: Loading Time: 1502506763528
08-12 10:59:23.528 32501-32501/com.yunbi D/BaseWebViewFragment: 取消小菊花开始...
08-12 10:59:23.578 32501-32501/com.yunbi V/InputMethodManager: onWindowFocus: com.yunbi.view.AppWebView{cfdb3 VFED..C.. .F....ID 0,0-720,1221 #7f0f00b1 app:id/market_web_view} softInputMode=272 first=true flags=#81810100
08-12 10:59:23.578 32501-32501/com.yunbi V/InputMethodManager: START INPUT: com.yunbi.view.AppWebView{cfdb3 VFED..C.. .F....ID 0,0-720,1221 #7f0f00b1 app:id/market_web_view} ic=null tba=android.view.inputmethod.EditorInfo@2a1910f controlFlags=#105

简直太可怕.

分析原因: 

1. 加载的js/css/image过多.  导致访问慢

2. 首页总共有3个tab.    同时都加载了. 没有对每个tab做延迟加载. 

订阅/RSS Feed

Subscribe

分类/category