insertBefore body first child to make sure we're not appending to a loading element. That said, should this use documentElement instead?