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

Ref 0ac28ed293
This commit is contained in:
Oleg Gaidarenko 2015-02-15 01:21:05 +03:00
parent 889bb1e3ee
commit 4b3e63066d
2 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,6 @@ jQuery.ajaxTransport( "script", function(s) {
script = document.createElement("script"); script = document.createElement("script");
script.async = true;
if ( s.scriptCharset ) { if ( s.scriptCharset ) {
script.charset = s.scriptCharset; script.charset = s.scriptCharset;
} }

View File

@ -8,6 +8,8 @@ jQuery._evalUrl = function( url ) {
type: "GET", type: "GET",
dataType: "script", dataType: "script",
cache: true, cache: true,
// Make this explicit, since user can override this through ajaxSetup (#11264)
async: false, async: false,
global: false, global: false,
"throws": true "throws": true