Skip to content

Disable Origin Trial code in WebChannel to reduce JS bundle size. #5563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/webchannel-wrapper/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ const closureDefines = [
// Disables IE8-specific event fallback code (saves 523 bytes).
'goog.events.CAPTURE_SIMULATION_MODE=0',
// Disable IE-Specific ActiveX fallback for XHRs (saves 524 bytes).
'goog.net.XmlHttpDefines.ASSUME_NATIVE_XHR=true'
'goog.net.XmlHttpDefines.ASSUME_NATIVE_XHR=true',
// Disable Origin Trials code for WebChannel (saves 1786 bytes).
'goog.net.webChannel.ALLOW_ORIGIN_TRIAL_FEATURES=false',
];

/**
Expand Down