aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax/script.js
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2011-01-24 11:18:57 +0100
committerAnton M <obhvsbypqghgc@gmail.com>2011-02-02 00:59:00 +0100
commit462bb1f66abf239492ee33c60feee3402fe64f77 (patch)
treeb8f92940c69d4aa566bc1f4557521889006957de /src/ajax/script.js
parentfdd4101fe93321f33b916a92b5def1328ea331b3 (diff)
downloadjquery-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.js2
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 {