mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
889bb1e3ee
commit
4b3e63066d
@ -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 ) {
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user