Skip to content

Commit 0ac28ed

Browse files
committed
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
1 parent fcb6c4d commit 0ac28ed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/ajax/script.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jQuery.ajaxTransport( "script", function( s ) {
3939
return {
4040
send: function( _, complete ) {
4141
script = jQuery("<script>").prop({
42-
async: true,
4342
charset: s.scriptCharset,
4443
src: s.url
4544
}).on(

src/manipulation/_evalUrl.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ define([
55
jQuery._evalUrl = function( url ) {
66
return jQuery.ajax({
77
url: url,
8+
9+
// Make this explicit, since user can override this through ajaxSetup (#11264)
810
type: "GET",
911
dataType: "script",
1012
cache: true,

0 commit comments

Comments
 (0)