We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mux-video-react
There is no easy way to lazy load the player and even so they bundle size is way to big.
It added 120kB to my first load JS
Instead I'm now lazy loading react-player with a reduced bundle size of 120kB
A reduced bundle size and the ability to defer / lazy load
The text was updated successfully, but these errors were encountered:
@JoeMatkin thanks for opening. Lazy loading will depend on your framework and build setup, what are you using?
We do have a guide here about Lazy Loading Mux Player
The biggest dependency we have is Hls.js, which is beefy and required in order to make Hls playback work in all non-Safari browsers.
Sorry, something went wrong.
@JoeMatkin thanks for opening. Lazy loading will depend on your framework and build setup, what are you using? We do have a guide here about Lazy Loading Mux Player The biggest dependency we have is Hls.js, which is beefy and required in order to make Hls playback work in all non-Safari browsers.
HLS leads to 383kb being loaded client side in our case.
Not including the other 83kb by mux-embed and another 135kb by @mux. That's quite a bit.
mux-embed
@mux
Is that expected? Our only dependency in package.json is "@mux/mux-player-react": "^1.14.2",.
package.json
"@mux/mux-player-react": "^1.14.2",
Might v2 contain some improvements in that regard? Or is this unexpected we should hunt for some kind of misconfiguration?
No branches or pull requests
Is there an existing issue for this?
Which Mux Elements/Packages does this apply to? Select all that apply
mux-video-react
Description
There is no easy way to lazy load the player and even so they bundle size is way to big.
It added 120kB to my first load JS
Instead I'm now lazy loading react-player with a reduced bundle size of 120kB
Expected Behavior
A reduced bundle size and the ability to defer / lazy load
The text was updated successfully, but these errors were encountered: