Wouldn't it be yet another optimization to just include that loadScript function in the HTML? Reducing round trips to the server is a common technique in web site optimization.
I realize that script will be cached after the first time, but it's so small that it will hardly affect the performance of subsequent requests anyway.