title: Is there a way to wait for the dom of a website to be loaded (not the full web-page)?
body: <p>I would like to execute some javascript code on a web-page after it has loaded, but only the DOM.</p>
  
  <p>I have seen that in the past you could use the document.onload event but that it is no longer supported by all the browsers.</p>
  
  <p>I have stumbled over this piece of code : </p>
  
  <pre><code>window.onload = function() {
   //code to be executed after the web-page is done loading...
  }
  </code></pre>
  
  <p>The issue is that this waits for the full web-page to load i.e. images and other stuff included.</p>
  
  <p>Is there any other way to do this ?</p>