title: JavaScript: Disable images in Selenium ChromeDriver
body: <p>Because Webdriver waits for the entire page to load before going on to the next line, I want to disable images will speed things up when the network is slow.</p>
  
  <p>This is the example js file in Selenium Webdriver's website:</p>
  
  <pre><code>var webdriver = require('selenium-webdriver'),
      By = webdriver.By,
      until = webdriver.until;
  
  var driver = new webdriver.Builder()
      .forBrowser('chrome')
      .build();
  
  driver.get('http://www.google.com/ncr');
  driver.findElement(By.name('q')).sendKeys('webdriver');
  driver.findElement(By.name('btnG')).click();
  driver.wait(until.titleIs('webdriver - Google Search'), 1000);
  driver.quit();
  </code></pre>
  
  <p>How can I disable image in my code?</p>
  
  <p>I have search google for this question, I only get this solution in Python: <a href="https://stackoverflow.com/questions/25214473/disable-images-in-selenium-python">Disable images in Selenium Python</a>.</p>