plitting">Code splitting</a></h4>
<p>In a large application, it may be desirable to download the code for each route on demand, rather than upfront. Dividing the codebase this way is known as code splitting or lazy loading. In Mithril, this can be accomplished by returning a promise from the <code>onmatch</code> hook:</p>
<p>At its most basic form, one could do the following:</p>
<pre><code class="language-javascript">// Home.js
module.export = {
    view: function() {
        return [
            m(Menu),
