]> source.dussan.org Git - jquery.git/commitdiff
Ajax: simplify one ajax call and add explanatory comment
authorOleg Gaidarenko <markelog@gmail.com>
Mon, 26 Jan 2015 03:42:14 +0000 (06:42 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Sat, 14 Feb 2015 23:00:38 +0000 (02:00 +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

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

index bf5f91d53b8b4874c404931dc5a104bbcf49ac38..f5a1f00a42b93bed547033d53e03bb4f2b9f86e0 100644 (file)
@@ -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(
index 0fdacbceef849f91a39d40f6781c7e10f52fbaeb..59464bcd9056ed3d01f7831c5fc7de7e53784d76 100644 (file)
@@ -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,