News for hackers. Stuff that matters.
Re:Building a front end with no JavaScript by snek on Thursday April 11, 2019 @11:28AM (#19635552)
...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.