mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
fix for #5017
This commit is contained in:
parent
b539b6e1d9
commit
4a3c4c86c9
@ -275,7 +275,7 @@ jQuery.extend({
|
||||
if ( s.dataType === "script" && type === "GET" && parts
|
||||
&& ( parts[1] && parts[1] !== location.protocol || parts[2] !== location.host )) {
|
||||
|
||||
var head = document.getElementsByTagName("head")[0];
|
||||
var head = document.getElementsByTagName("head")[0] || document.documentElement;
|
||||
var script = document.createElement("script");
|
||||
script.src = s.url;
|
||||
if ( s.scriptCharset ) {
|
||||
|
Loading…
Reference in New Issue
Block a user