You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously XHD was special-cased for 'json' file assets, but not all JSON
requests. Now it is used for all XHR transfers when `useXDomainRequest` is
enabled.
If XDR is used outside of IE 9 then a warning is emitted to the console.
The `useXDomainRequest` property has also been deprecated
This may address consistency issues as mentioned in
phaserjs#1361
Copy file name to clipboardExpand all lines: src/loader/Loader.js
+31-12Lines changed: 31 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -120,13 +120,20 @@ Phaser.Loader = function (game) {
120
120
this.onFileError=newPhaser.Signal();
121
121
122
122
/**
123
-
* If true and if the browser supports XDomainRequest, it will be used in preference for XHR when loading JSON files (it does not affect other file types).
124
-
* This is only relevant for IE9 and should only be enabled when required by the server/CDN.
123
+
* If true and if the browser supports XDomainRequest, it will be used in preference for XHR.
124
+
*
125
+
* This is only relevant for IE 9 and should _only_ be enabled for IE 9 clients when required by the server/CDN.
125
126
*
126
127
* @property {boolean} useXDomainRequest
128
+
* @deprecated This is only relevant for IE 9.
127
129
*/
128
130
this.useXDomainRequest=false;
129
131
132
+
/**
133
+
* @property {boolean} _warnedAboutXDomainRequest - Control number of warnings for using XDR outside of IE 9.
134
+
*/
135
+
this._warnedAboutXDomainRequest=false;
136
+
130
137
/**
131
138
* If true then parallel downloading will be enabled.
0 commit comments