Skip to content

Commit 88ea069

Browse files
authored
Disable Origin Trial code in WebChannel to reduce JS bundle size. (#5563)
1 parent e70de62 commit 88ea069

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/webchannel-wrapper/gulpfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ const closureDefines = [
5252
// Disables IE8-specific event fallback code (saves 523 bytes).
5353
'goog.events.CAPTURE_SIMULATION_MODE=0',
5454
// Disable IE-Specific ActiveX fallback for XHRs (saves 524 bytes).
55-
'goog.net.XmlHttpDefines.ASSUME_NATIVE_XHR=true'
55+
'goog.net.XmlHttpDefines.ASSUME_NATIVE_XHR=true',
56+
// Disable Origin Trials code for WebChannel (saves 1786 bytes).
57+
'goog.net.webChannel.ALLOW_ORIGIN_TRIAL_FEATURES=false',
5658
];
5759

5860
/**

0 commit comments

Comments
 (0)