Webview is loading slowly

I have a webview and then 3 buttons. The text that fills the web view and the text for each button is pulled from the SQL server, each of which is set. When the intent opens, the buttons are set, but the webview is empty and then loaded in a second.

Is there something I can do to change this?

+5
source share
1 answer

There are other questions that ask similar questions, this was taken from them:

webview.getSettings().setRenderPriority(RenderPriority.HIGH);
webview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);

Adding this android:hardwareAccelerated="true"to the manifest was the only one that significantly improved performance for me.

+1
source

All Articles