title: Fetch all url content for android webview asynchronously?
body: <p>In the android web view the URL fetching is done synchronously causing a time lag.(<code>shouldInterceptRequest()</code> in webview client is called synchronously in a single IO thread, so resources will be loaded synchronously one after another)</p>
  
  <p>I would like to know a way to make it asynchronous to avoid the above problem.</p>
  
  <p>According to my research:</p>
  
  <ol>
  <li><p><strong>Pre fetch the URLs and cache it</strong> - <em>even if we pre fetch there is a time delay. (My application directly goes to the webview itself so i do not have sufficient time to pre fetch) And we do not know the URLs that the webview calls until we go through the shouldIntercept method in the web client.</em> </p></li>
  <li><p><strong>Override shouldInterceptRequest()</strong> to immediately return some fake result and start async load of the requested resource - <em>we do not know when the asynchronous call will end in order to refresh the webview with the resource.</em></p></li>
  </ol>