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.async = true;
if ( s.scriptCharset ) {
script.charset = s.scriptCharset;
}

View 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