-
Notifications
You must be signed in to change notification settings - Fork 7
perf: use global browser instead of webextension-polyfill #839
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
base: main
Are you sure you want to change the base?
Conversation
Extension builds preview
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test-e2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test-e2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test-e2e
Context
We don't need the polyfill except for async message handlers in background.
Changes proposed in this pull request
Remove polyfilled browser from content scripts and React apps to reduce bundle size, and have less JS in content scripts (as they get injected into each frame in each tab) for better performance.
Keeping it draft until we add more E2E tests.
Zip size went down 20KB only (duplication compresses better in zip). Unzipped size went 2.09MB from to 2.03MB (60KB).