SyntaxFix
Write A Post
Hire A Developer
Questions
Here is a much clearer way — no need for jQuery — which adds a script as the last child of <body>:
<body>
document.body.innerHTML +='<script src="mycdn.js"><\/script>'
But if you want to add and load scripts use Rocket Hazmat's method.