meteorhacks / meteor-inject-initial

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

Inject.rawHead injects at the end of <body> tag #22

Open SachaG opened 8 years ago

SachaG commented 8 years ago

This is a weird issue: my code gets injected in the wrong place, at the end of <body> instead of the end of <head>.

This also happens with just having code in a plain HTML file and using the static-html package so it might not be directly related to inject-initial. But I thought maybe you'd have an idea of what's going on?

gadicc commented 8 years ago

Hey, I've heard of a few issues in static-htmll generally. I assumed they were all fixed now but haven't kept up-to-date since I don't use it.

If you can provide a code sample or small reproduction, without static-html, I'd be happy to take a look.

The regexp we use places heads/bodies directly after the <head> and <body> tags.

Floriferous commented 6 years ago

I'm seeing this plus another issue (using static-html):

The loader is placed in my body and it takes all of my initial head (from client/main.html) and moves it to my body as well. So a couple things don't work anymore, like my favicon.

Should an issue be created on the meteor repo?