title: How can I manually trigger DOMContentLoaded?
body: <p>I am loading in a script (Google Tag Manager) that most likely listens for DOMContentReady events. The issue is that the script is loaded after DOMContentReady has completed. So I am looking for a way to manually trigger the DOMContentReady event (or any other native 'ready' event GTM might listen to)</p>
  
  <p>I have tried with: <code>document.dispatchEvent(new CustomEvent('DOMContentLoaded'))</code> but it doesn't seem to work.</p>