diff options
author | Mathias Bynens <mathias@qiwi.be> | 2011-01-24 11:18:57 +0100 |
---|---|---|
committer | Anton M <obhvsbypqghgc@gmail.com> | 2011-02-02 00:59:00 +0100 |
commit | 462bb1f66abf239492ee33c60feee3402fe64f77 (patch) | |
tree | b8f92940c69d4aa566bc1f4557521889006957de /src/ajax/script.js | |
parent | fdd4101fe93321f33b916a92b5def1328ea331b3 (diff) | |
download | jquery-462bb1f66abf239492ee33c60feee3402fe64f77.tar.gz jquery-462bb1f66abf239492ee33c60feee3402fe64f77.zip |
Fixes #8098. Use the fast document.head when available. Don't set unneeded "script.type = text/javascript".
Diffstat (limited to 'src/ajax/script.js')
-rw-r--r-- | src/ajax/script.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/script.js b/src/ajax/script.js index 731f5b609..34ddd0466 100644 --- a/src/ajax/script.js +++ b/src/ajax/script.js @@ -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 { |