title: HTML is read before fully loaded using open-uri and nokogiri
body: <p>I'm using <code>open-uri</code> and <code>nokogiri</code> with ruby to do some simple webcrawling.
  There's one problem that sometimes html is read before it is fully loaded. In such cases, I cannot fetch any content other than the loading-icon and the nav bar.
  What is the best way to tell <code>open-uri</code> or <code>nokogiri</code> to wait until the page is fully loaded?</p>
  
  <p>Currently my script looks like:</p>
  
  <pre><code>require 'nokogiri'
  require 'open-uri'
  
  url = "https://www.the-page-i-wanna-crawl.com"
  doc = Nokogiri::HTML(open(url, ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE)) 
  puts doc.at_css("h2").text
  </code></pre>