Storing Javascript locally in Android app, is this possible?

| | August 6, 2015

I am working on a heavily webview dependant application. Load times are decent now after optimizations on my web code, but its nowhere near speeds of a native app.

I wonder if its possible to store frequently used Javascript in the app itself, rather than loading it everytime from the server. Maybe a way to store/load that Javascript on the Webview.

One Response to “Storing Javascript locally in Android app, is this possible?”

  1. You can try changing WebSettings’s setCacheMode Please refer to documentation given in this link.

    Try changing it with LOAD_CACHE_ELSE_NETWORK.

    Visit this link which might help you.

Leave a Reply