News for hackers. Stuff that matters.
Re:SPAs Were a Mistake by onaworkcomputer on Wednesday March 02, 2022 @01:35PM (#30530964)
> I preload basically all the data a user might need at startup

This can be a great strategy when you're dealing with bounded data that's not sensitive, but it's important to recognize that this approach is often inappropriate. A web app may be allowing users to wander around terabytes of data, or it may need to make highly consistent authorization determinations before allowing a user to see specific data, or you may need to keep a highly detailed audit log of who requested what when (e.g., if the app targets healthcare or government users), which aggressive preloading would render useless.

Re:SPAs Were a Mistake by horsawlarway on Wednesday March 02, 2022 @01:48PM (#30531139)
> Still doesn't make an SPA the right fit for everything
Re:SPAs Were a Mistake by giaour on Wednesday March 02, 2022 @07:07PM (#30535308)
I would counter that data freshness and authZ concerns make SPAs a poor fit for most things. What you're proposing in this thread is that good SPAs essentially need to hold all data client side and not have to worry about out of band cache invalidation, which seems like a pretty rare set of circumstances.
Re:SPAs Were a Mistake by mrtranscendence on Wednesday March 02, 2022 @03:34PM (#30532703)
It's still worth pointing out.