Re:Building a front end with no JavaScript
by ashton314 on Thursday April 11, 2019 @10:20AM
(#19634758)
Yes, a JS enhancement that weighs less than 30 KB. I’ll take that any day over a >100 KB React app.
[ Parent
| on HN ]
...and end up keeping a websocket open, transferring far more than 30kb or even 100kb in state changes over the lifetime of the app, while also using up the devices battery and data limits? friendly reminder that 100kb of js can be cached on the device, while a stateful websocket obviously can not.
Re:Building a front end with no JavaScript
by Can_Not on Thursday April 11, 2019 @10:53PM
(#19641534)
While we're here, Server Sent Events (SSE) over HTTP2/3 (which websockets doesn't support) is apparently more battery friendly for phones. Symfony recently got support for SSE using the mercure protocol, it would be lovely if more backend frameworks had first class support for SSE.