title: How can I check if the DOM is ready without a listener?
body: <p>If I have a script that is loaded dynamically, I want it to wait until the DOM is ready before executing code. However, if the script loads too slowly, the DOM will already be ready and therefore the DOM-Ready function will not run.</p>
  
  <p>No frameworks, please, I'm relying on pure JavaScript.</p>
  
  <p>Thanks in advance!</p>