Hacker News new | ask | show | jobs
by huhtenberg 1610 days ago
Not take away from the brevity of the code, but these 60 lines translate into 168KB of JavaScript.
2 comments

Wait until you find out how big the browser that runs that code is!
This is a blithe statement - the browser isn't downloaded whenever a user navigates to the page. 1/6th of a MB for a page this simple is pretty substantial.
Do you download the browser on every request?

Of course 168kB is still nothing but your comparison is flawed.

Don’t give web developers any ideas.
hyperscript is ~22k gziped and cached after the first request

the size is not an issue

now, the runtime on the other hand...

wait is this not being compiled to js?
_hyperscript_web.min.js is 84.1 KiB (86,093 bytes) and when zipped it's 22.1 KiB (22,641 bytes)
Looks like they doubled the size by accident, in the network debugger the first is a 302 that resolves to the actual file. It shows 84kb twice because of that.