title: Android Webview loading slow for the first time
body: <p>I have created a library to start an activity with a Webview.
  I'm trying to load local HTML file which with an Iframe inside it Whenever I'm starting the activity, for first time it is taking approx. of 5 seconds to display iframe. The 2nd time it is taking approx. of 2 seconds to display.</p>
  <p>How can i reduce load time, for the first load?</p>
  <p>Here are the two java files respectively.</p>
  <p>WebviewOverlay.java</p>
  <pre><code>String botUrl = &quot;someurl&quot;;
  myWebView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
  myWebView.loadUrl(botUrl);
  return myWebView;
  </code></pre>
  <p>WebviewActivity.java</p>
  <pre><code>wb = new WebviewOverlay();
  FragmentManager fragmentManager = getSupportFragmentManager();
  fragmentManager.beginTransaction().add(R.id.container, wb).commit();
  </code></pre>