4 ms·
Not take away from the brevity of the code, but these 60 lines translate into 168KB of JavaScript.
by huhtenberg 5y ago
Not take away from the brevity of the code, but these 60 lines translate into 168KB of JavaScript.
- dane-pgp 5y agoWait until you find out how big the browser that runs that code is!
- antihero 5y agoDo you download the browser on every request? Of course 168kB is still nothing but your comparison is flawed.
- teaearlgraycold 5y agoDon’t give web developers any ideas.
- recursivedoubts 5y agohyperscript is ~22k gziped and cached after the first request the size is not an issue now, the runtime on the other hand...
- skavi 5y agowait is this not being compiled to js?
- ivanbakel 5y agoThis 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.
- irq-1 5y ago_hyperscript_web.min.js is 84.1 KiB (86,093 bytes) and when zipped it's 22.1 KiB (22,641 bytes)
- ajusa 5y agoLooks 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.