meteorhacks / meteor-inject-initial

Allow injection of arbitrary data to initial Meteor HTML page
Other
78 stars 11 forks source link

Not working with Meteor 1.3.2.4 #19

Open trusktr opened 8 years ago

trusktr commented 8 years ago

I tried both of these:

Inject.rawModHtml('raf-timeout', function(html, res) {
    return html + "<!-- hello Inject -->"
})
Inject.rawModHtml('raf-timeout', function(html, res) {
    res.end(html + "<!-- hello Inject -->")
})

but in either case the browser tab load spinner spins forever, and eventually the connection fails.

cc @gadicc

gadicc commented 8 years ago

Hey, I can't seem to reproduce this. Works fine for me on a fresh site.

Your first way is the correct way; if you use res.end() you'll short-circuit all the other callbacks.

See if you can confirm with a fresh meteor create and then see if any other packages could be conflicting? Also that you're using the latest version (v1.0.4)