4 ms·
All of VideoJS is 158KB so I doubt it. I can't see those two interactions needing that much code. edit: that's gzipped, but still, less than 600KB w/ many mor
by hunterb123 5y ago
All of VideoJS is 158KB so I doubt it.
I can't see those two interactions needing that much code.
edit: that's gzipped, but still, less than 600KB w/ many more features.
- d2wa 5y ago551.87 KB https://vjs.zencdn.net/7.15.4/video.min.js https://vjs.zencdn.net/7.15.4/video.min.js plus 56.14 KB https://vjs.zencdn.net/7.15.4/video-js.css https://vjs.zencdn.net/7.15.4/video-js.css
- lewispollard 5y agoI don't know anything about video.js in particular, but many libraries are huge when served from a CDN because they have to account for every possible use case, as well as every locale, whereas in a local build with tree shaking and modular imports, it can be cut down by quite a lot. Depends on how "legacy" the codebase is, though.
- hunterb123 5y agoTrue, the CDN size is 158KB gzipped, but it's still under 600KB unpacked. The point is that's for a feature packed video lib which also covers resolution handling (not sure if it handles fullscreen resolution changing, but I don't see why they wouldn't.)