// This transport only deals with cross domain get requests
if ( s.crossDomain && s.async && ( s.type === "GET" || ! s.data ) ) {
// This transport only deals with cross domain get requests
if ( s.crossDomain && s.async && ( s.type === "GET" || ! s.data ) ) {
send: function(_, callback) {
script = document.createElement("script");
send: function(_, callback) {
script = document.createElement("script");
// Attach handlers for all browsers
script.onload = script.onreadystatechange = function( _ , statusText) {
// Attach handlers for all browsers
script.onload = script.onreadystatechange = function( _ , statusText) {
// This arises when a base node is used (#2709 and #4378).
head.insertBefore( script, head.firstChild );
},
// This arises when a base node is used (#2709 and #4378).
head.insertBefore( script, head.firstChild );
},
abort: function(statusText) {
if ( script ) {
script.onload( 0 , statusText );
abort: function(statusText) {
if ( script ) {
script.onload( 0 , statusText );