title: Chrome headless- How to set a delay for rendering javascript chart?
body: <p>I am trying to convert a HTML file to a PDF file. Now I am using chrome headless.</p>
  
  <p>I am following this <a href="https://developers.google.com/web/updates/2017/04/headless-chrome" rel="nofollow noreferrer">https://developers.google.com/web/updates/2017/04/headless-chrome</a></p>
  
  <p>And when I enter this command :</p>
  
  <pre><code>google-chrome --headless --disable-gpu --print-to-pdf https://www.chromestatus.com/
  </code></pre>
  
  <p>Sometimes it shows like this :</p>
  
  <p><a href="https://i.stack.imgur.com/0m94J.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0m94J.jpg" alt="enter image description here"></a></p>
  
  <p>I tried with the other pages but they are same.</p>
  
  <p>I think it needs a delay to render the javascript chart.</p>
  
  <p>Is there any way to set a delay for converting?</p>