Search code examples
javascriptmeteoriron-router

All scripts are loaded inside the body, not head - Meteor.js IronRouter


For some reason all scripts are loaded inside the body.

See Image

Jade:

head
  title xxx
body
  +layout

template(name='layout')
  XXX

-----
JS:

Router.configure({
   layoutTemplate: 'layout'
});

I have everything set up properly. Using Meteor 1.3


Solution

  • Moving the scripts to the body is by design as of Meteor 1.3. There are open questions on the repo as to why they are currently at the start of the body and not the end. See here and here for discussion.