]> source.dussan.org Git - jquery.git/commitdiff
Ajax: simplify one ajax call and add explanatory comment
authorOleg Gaidarenko <markelog@gmail.com>
Sat, 14 Feb 2015 22:21:05 +0000 (01:21 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Sat, 14 Feb 2015 23:03:20 +0000 (02:03 +0300)
* 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

Ref 0ac28ed293681cb8f2e9fdd11efa0021da039c84

src/ajax/script.js
src/manipulation/_evalUrl.js

index be422adf34b02a064f0e5f7a1fd711a3f5de370f..2e937fe6574d10d0c8da386eff74df27b736cd86 100644 (file)
@@ -46,8 +46,6 @@ jQuery.ajaxTransport( "script", function(s) {
 
                                script = document.createElement("script");
 
-                               script.async = true;
-
                                if ( s.scriptCharset ) {
                                        script.charset = s.scriptCharset;
                                }
index 0fdacbceef849f91a39d40f6781c7e10f52fbaeb..007e7293c94dcf4647bce1142009718c386d991f 100644 (file)
@@ -8,6 +8,8 @@ jQuery._evalUrl = function( url ) {
                type: "GET",
                dataType: "script",
                cache: true,
+
+               // Make this explicit, since user can override this through ajaxSetup (#11264)
                async: false,
                global: false,
                "throws": true