I am using a custom List View that contains some components like Image View, Text View and Web View. I am using a List View because the data is not fixed and changes after every item click. So due to dynamic data I am using a list view, I am using BaseAdapter for this.
In WebView I am displaying some Math expressions. For that I need local Javascript: all works fine but it takes around 4 to 5 seconds to load Javascript in WebView. After that, it starts rendering, so the total time to display output is 5 to 6 seconds.
I want to reduce this time. Is there any way that I can preload Javascript in WebView?
The GetView()
method every time creates a new instance of WebView and other components, so every time it's loading Javascript.
Is there any way in that I can use a preloaded Javascript Webview?