title: Attach onDomContentLoaded function call to DOM object in HTML file
body: <pre><code>&lt;div id = &quot;myGrid&quot; onDomContentLoaded = &quot;console.log('this')&quot;&gt;&lt;/div&gt;
  </code></pre>
  <p>Is there a way to attach javascript logic like this that runs after all defered scripts have been run, and that maintains the dom element as 'this'?</p>