3 ms·
Our government's COVID statistics site[0] is a SPA. It doesn't need to be, it just shows tables and graphs, but these days any new page seems to needlessly be m
by ASalazarMX 6y ago
Our government's COVID statistics site[0] is a SPA. It doesn't need to be, it just shows tables and graphs, but these days any new page seems to needlessly be made as a sluggish SPA.
If you want to check hospital bed occupancy by state, it's 3 clicks, a 5 second spinner while it loads the results and shows the first 20 rows. It doesn't sound that bad, unless you refresh, in that case it throws you back at the landing page.
This should be a static site, but even if not, this is actually slower than a server-side rendered page. SPAs are not desktop-like when they constantly request server data, even if they hide it with slow animations and spinners.
[0] https://www.gits.igg.unam.mx/red-irag-dashboard/reviewHome https://www.gits.igg.unam.mx/red-irag-dashboard/reviewHome
- xellisx 6y agoYeah our county covid stats are the same. Static pages would work great here, instead of having to hit the API and DB for the data, since the data is updated once a day.
- asddubs 6y agoI've found that the new SPAified paypal is also unbelievably sluggish. I'm sure this is because they're doing something dumb rather than some intrinsic quality to SPAs, but SPAs sure do make it easy to do something dumb without noticing. especially if you're developing in 0-latency environments
- ASalazarMX 6y agoYes, SPAs can easily get horribly sluggish. The Josh Hopkins University dashboard[0] has been the de facto international source on this pandemic, and man, while I'm grateful for it, it is horribly sluggish. How much power has been wasted by clients rendering the exact same map and data over and over all over the world? Compare their approach to Worldmeters' COVID statistics page[1], which while less functional, it's very lightweight and responsive. [0]. https://coronavirus.jhu.edu/map.html https://coronavirus.jhu.edu/map.html [1]. https://www.worldometers.info/coronavirus/ https://www.worldometers.info/coronavirus/