mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fixes #8098. Use the fast document.head when available. Don't set unneeded "script.type = text/javascript".
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user