title: How can I make .goto non-blocking?
body: <p>I'm writing a rails app which fetches text from an HTML page using Watir and Chrome Headless. All good so far!</p>
  
  <p>The problem starts when I request a page which has a long load time to completely load <em>all</em> elements despite the fact that I don't need them.</p>
  
  <p>Current code I use:</p>
  
  <pre><code>browser = Watir::Browser.new :chrome, headless: true
  
  browser.goto(url)
  </code></pre>
  
  <p>The .goto function call, however, blocks until ALL elements have loaded. That's not really what I need - what I need is for goto to just start fetching the page, then continue running code since I really just want to wait until the text I need is present, then fetch it.</p>
  
  <p>Any ideas?</p>