Fixes #8098. Use the fast document.head when available. Don't set unneeded "script.type = text/javascript".

This commit is contained in:
Mathias Bynens 2011-01-24 11:18:57 +01:00 committed by Anton M
parent fdd4101fe9
commit 462bb1f66a
4 changed files with 6 additions and 10 deletions

View file

@ -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 {