Skip to content
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

Bundle size is huge (sent to client on load) #98

Open
V-iktor opened this issue Apr 23, 2024 · 2 comments
Open

Bundle size is huge (sent to client on load) #98

V-iktor opened this issue Apr 23, 2024 · 2 comments

Comments

@V-iktor
Copy link

V-iktor commented Apr 23, 2024

This should not be a dependency but instead opt in using a separate "react-datocms-video" package (like AirBNB Visx does to split packages)

https://bundlephobia.com/package/@mux/[email protected]

@Diabl0570
Copy link

Its 117,92kb Gzipped. Lets say for easy calculations reason we have 100k unique visitors a day. Thats 117,92kb * 100k = about 11GB per day. This times 365 days a year equals to about 4TB extra data per year. For us in Vercel this would cost about 600 euro's per year for JUST this mux-player-react component that we don't even use

@stefanoverna
Copy link
Member

@sistrall ☝️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants