Fixes #8098. Use the fast document.head when available. Don't set unneeded "script.type = text/javascript".
This commit is contained in:
parent
fdd4101fe9
commit
462bb1f66a
4 changed files with 6 additions and 10 deletions
|
@ -34,7 +34,7 @@ jQuery.ajaxTransport( "script", function(s) {
|
|||
if ( s.crossDomain ) {
|
||||
|
||||
var script,
|
||||
head = document.getElementsByTagName( "head" )[ 0 ] || document.documentElement;
|
||||
head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
|
||||
|
||||
return {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue