Laurent
CCConvex Community
•Created by Laurent on 8/30/2024 in #support-community
Client Bundle Size
Back. I found out that with a simple query feed and basic Google OAuth my app only grew around 20Kb. I’m not using all the features but that’s quite nice already 👍
9 replies
CCConvex Community
•Created by Laurent on 8/30/2024 in #support-community
Client Bundle Size
@ballingt I didn’t notice they were not minified. That’s even better actually, as you said they should be even smaller once minified and eventually tree shaken. I use Vite (Rollup) as a bundler with terser as my minifier. I’m currently setting up a test repo to get real world numbers about the final client bundle size (database + auth + storage). I will let you know my results.
9 replies
CCConvex Community
•Created by Laurent on 8/30/2024 in #support-community
Client Bundle Size
@ballingt I do not exactly have specific low bandwidth needs, I’d rather say I have speed and SEO needs 😉 When we look at https://cdn.jsdelivr.net/npm/convex/dist/,
browser.bundle.js
is 108.58 KB and react.bundle.js
is 119.81 KB, but the data transmitted on the wire is respectively 23.0 KB and 26 KB thanks to the brotli compression. This is actually pretty good compared to Firebase. Firebase, even v9+ with tree shaking, is so bloated that to keep my SPA lighthouse score above 98% I had to use the REST API for the first load of my app while in parallel downloading 95 KB (brotli) of Firebase stuff (Firestore, auth, storage) in a web worker that I use for next app loads. Plus 25 KB (brotli) of an OAuth chunk when needed. I am definitively going to give Convex a try to see if it is as good as it looks! 👍9 replies