<html lang="en">
<head>
  <meta charset="UTF-8">
  <script type="text/javascript">
    var __meteor_runtime_config__ = {{ meteorRuntimeConfig }}
  </script>
</head>
<body>
  <div id="altboiler_boilerPlateLoader">
    <style type="text/css">
      {{{ styles }}}
    </style>
    {{{ content }}}
    <script type="text/javascript">
      {{{ script }}}
      altboiler.loader.onLoad(altboiler.loader.removerById('altboiler_boilerPlateLoader'))
      altboiler.loader.onLoad({{ onLoadHooks }})
      altboiler.loader.onLoad(altboiler.loader.appender({{{ head }}}, {{{ body }}}))
      altboiler = altboiler
    </script>
  </div>
  <script id="altboiler_appScripts" type="text/javascript" src="{{ appScript }}"></script>
  <script type="text/javascript">
    altboiler.loader.runOnLoadQueue()
  </script>
</body>
</html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <script type="text/javascript">
    var __meteor_runtime_config__ = {{ meteorRuntimeConfig }}
  </script>
</head>
<body>
  <div id="altboiler_boilerPlateLoader">
    <style type="text/css">
      {{{ styles }}}
    </style>
    <script type="text/javascript">
      {{{ script }}}
      altboiler.loader.onLoad(altboiler.loader.removerById('altboiler_boilerPlateLoader'))
      altboiler.loader.onLoad(altboiler.loader.removerById('altboiler_onLoadHooks'))
      altboiler.loader.onLoad({{ onLoadHooks }})
      altboiler.loader.onLoad(altboiler.loader.appender({{{ head }}}, {{{ body }}}))
      altboiler = altboiler
    </script>
    {{{ content }}}
  </div>
  <script id="altboiler_appScripts" type="text/javascript" src="{{ appScript }}"></script>
  <script id="altboiler_onLoadHooks" type="text/javascript">
    altboiler.loader.runOnLoadQueue()
  </script>
</body>
</html>
Fix the load order and add a remover the left-over script tag for onLoad
Fix the load order and add a remover the left-over script tag for onLoad
