Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

0kb is best size of JS. Curious if I do want JS, how much is extra framework overhead


3kB


as compared to nextjs’ ~150kb baseline? (not a real number im just guesstimating)


It’s not directly comparable. Svelte apps have an extremely minimal runtime, because Svelte compiles components into largely freestanding chunks of code.

The benefit is that for smaller apps, SvelteKit can be extremely lean, but the cost grows as the number of components and pages increases, since a number of attributes can’t draw from a larger, monolithic runtime (or set of runtimes).

You do have to build moderately large apps to hit the point at which it’s a drawback however.


79.46 kb which includes React. That's never where the bloat comes from.


How so, that 80 kb is bloat


I believe that's already a compressed size (not minified) that means 200kB+ minified (zero app code).




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: