title: How to use another js in mithril.js
body: <p>I need to include a third-party js library in my website and a working example in plain HTML file is something like</p>
  <pre><code>&lt;div id=&quot;app&quot;&gt;&lt;/div&gt;
  &lt;script src=&quot;app.js&quot;&gt;&lt;/script&gt;
  &lt;script&gt;App.initialize();&lt;/script&gt;
  </code></pre>
  <p>Basically the initialize() function will first fill the <code>#app</code> with a loading animation then fetch data from external API and finally load the <code>#app</code> with html code it generated.</p>
  <p>Everything works fine until I rewrite it in mithril.js, something like</p>
  <pre><code>const page = {
    view: () =&gt; [
      m('script', {src: 'app.js'}),
      m(app)
    ]
  } 
  const app = {
    oncreate: () =&gt; { App.initialize();},  
    view: () =&gt; m('#app')
  }
  </code></pre>
  <p>When I render the <code>page</code>, I can still see the loading animation but after it is gone, nothing shows up in <code>#app</code>.  The expected code is not loaded in <code>#app</code> as in plain HTML file, and there is no error message in the console.</p>
  <p>Did I miss anything or do anything wrong in mithril.js?</p>