I am trying to load a URL in WebView. The URL is in the format https://<host>/<page>.html
. The minimum time taken to load is 1 second (the time difference between the Callbacks onLoadResource() and onPageFinished()). Can this be reduced further. The page has no images.
Asked
Active
Viewed 1,110 times
-1

Bhaskar
- 1
- 2
1 Answers
0
you can enable web view cache using this
viewer.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT)
OR
details.getSettings().setAppCacheEnabled(true);
Also use can higher the priority like this
webview.getSettings().setRenderPriority(RenderPriority.HIGH);

Community
- 1
- 1

Syed Raza Mehdi
- 4,067
- 1
- 31
- 47
-
It is still the same. None of the techniques helped in further reducing the time difference between the two callbacks. It still takes 1 second. – Bhaskar Nov 07 '14 at 07:26
-
which device are you using? – Syed Raza Mehdi Nov 07 '14 at 11:02
-
Samsung Galaxy Note8, Android version 4.2.2 – Bhaskar Nov 07 '14 at 13:39