Skip to content

Conversation

sidvishnoi
Copy link
Member

@sidvishnoi sidvishnoi commented Jan 16, 2025

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).

@github-actions github-actions bot added area: content Improvements or additions to extension content script area: popup Improvements or additions to extension popup area: pages/app area: pages/notification area: pages Changes to any of extension's pages area: shared Changes to shared libraries and utilities labels Jan 16, 2025
Copy link
Contributor

github-actions bot commented Jan 16, 2025

Extension builds preview

Name Link
Latest commit a218906
Latest job logs Run #16316815847
Chrome (979.88KB)Download
Firefox (979.91KB)Download
Safari (1.9MB)Download

Copy link
Member Author

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test-e2e

Copy link
Member Author

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test-e2e

Copy link
Member Author

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test-e2e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: content Improvements or additions to extension content script area: pages/app area: pages/notification area: pages Changes to any of extension's pages area: popup Improvements or additions to extension popup area: shared Changes to shared libraries and utilities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant