You can use jQuery getScript :
$.getScript( external_script_url, function( data, textStatus, jqxhr ) { some code to execute after script is loaded });
If you also want to enable jQuery from the outside, you should load it this way
document.write('<script src="http://.../jquery.min.js</script>')
source share