title: How to disable image loading in CEF/JCEF?
body: <p>Is there a switch/flag that allows to do this? I spent hours finding those but couldn't find anything that works. The other thing I'm planning to do is intercept the <code>cefRequest</code> by adding my own <code>CefRequestHandler</code>, examine the resource type and if it matches <code>RT_IMAGE</code>, cancel the request. Everything seems easy except the part when I have to cancel a request. How do I stop/block/cancel a <code>cefRequest</code>? I probably should not be doing it this way but it doesn't work anyway:</p>
  
  <pre><code>public class CefClientRequestHandler extends CefRequestHandlerAdapter {
  
      @Override
      public boolean onBeforeResourceLoad(CefBrowser cefBrowser, CefFrame cefFrame, CefRequest cefRequest) {
          if (cefRequest.getResourceType().equals(CefRequest.ResourceType.RT_IMAGE)) {
              cefRequest.setURL("");
          }
          return false;
      }
  
      // more overides
  }
  </code></pre>
  
  <p>Any ideas?</p>