3 ms·
> getting scripts is simply bad, and getting plain old documents is simply good This isn't that simple IMO. On one hand, JS-heavy apps take longer to load on u
by miki123211 3y ago
> getting scripts is simply bad, and getting plain old documents is simply good
This isn't that simple IMO. On one hand, JS-heavy apps take longer to load on underpowered devices and slow connections, which should be treated as an accessibility concern. On the other, approaches like LiveView, HTMX or even plain old HTML struggle on high-latency or spotty connections. A well designed SPA can cache data locally and push changes whenever internet connectivity comes back, making it feel a lot snappier in these situations. SPA apps are harder to write because you have an extra API layer, but you need one anyway if you're also writing a mobile app, so they may even become slightly easier in that situation. Every solution has its tradeoffs.