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?