-1

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.

Bhaskar
  • 1
  • 2

1 Answers1

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);

read the doc and this link1, link2, link3 might also help

Community
  • 1
  • 1
Syed Raza Mehdi
  • 4,067
  • 1
  • 31
  • 47