Permalink
Browse files

Ajax: simplify one ajax call and add explanatory comment

* Remove "async = true" from script transport since it was needed
  for FF < 4 and old Opera which we do not support anymore

* Add comment to "evalUrl" method on why "type" field should be explicit
  • Loading branch information...
markelog committed Jan 26, 2015
1 parent fcb6c4d commit 0ac28ed293681cb8f2e9fdd11efa0021da039c84
Showing with 2 additions and 1 deletion.
  1. +0 −1 src/ajax/script.js
  2. +2 −0 src/manipulation/_evalUrl.js
View
@@ -39,7 +39,6 @@ jQuery.ajaxTransport( "script", function( s ) {
return {
send: function( _, complete ) {
script = jQuery("<script>").prop({
async: true,
charset: s.scriptCharset,
src: s.url
}).on(
@@ -5,6 +5,8 @@ define([
jQuery._evalUrl = function( url ) {
return jQuery.ajax({
url: url,
// Make this explicit, since user can override this through ajaxSetup (#11264)
type: "GET",
dataType: "script",
cache: true,

0 comments on commit 0ac28ed

Please sign in to comment.