title: WebView custom error page is not shown instantly
body: <p>I use this code to redirect a user to a custom error page when the webView got errors however the browser error on the webpage is visible for a few milliseconds before redirecting to the custom error page. </p>
  
  <p>The funny thing is that I have a <em>try again button</em> in <strong>error.html</strong> which tries to connect to the target webpage again. When I do fast clicks on try again, I can even see the browser error page clearly e.g. 404 page with the browser message <strong>web page is not available</strong>! This is not good because I want to completely hide the error especially the address of the webpage caused error which is visible in the browser error page.</p>
  
  <pre><code>public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
      webview.post(new Runnable() {
      @Override
      public void run() {
          webview.loadUrl("file:///android_asset/htmls/error.html");
          }
      });
  };
  </code></pre>
  
  <p>How should I hide the WebView instantly as soon as it receives an error? Is there another method to improve onReceivedError behavior?</p>