Commit 4b3e6306 authored by Oleg Gaidarenko's avatar Oleg Gaidarenko

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 0ac28ed293681cb8f2e9fdd11efa0021da039c84
parent 889bb1e3
...@@ -46,8 +46,6 @@ jQuery.ajaxTransport( "script", function(s) { ...@@ -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;
} }
......
...@@ -8,6 +8,8 @@ jQuery._evalUrl = function( url ) { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment