react-datocms icon indicating copy to clipboard operation
react-datocms copied to clipboard

Bundle size is huge (sent to client on load)

Open V-iktor opened this issue 1 year ago • 2 comments

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]

V-iktor avatar Apr 23 '24 10:04 V-iktor

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

Diabl0570 avatar Nov 21 '24 15:11 Diabl0570

@sistrall ☝️

stefanoverna avatar Nov 21 '24 17:11 stefanoverna