News for hackers. Stuff that matters.
Re:MVC frameworks aren't dinosaurs but sharks by yohannparis on Tuesday May 10, 2022 @08:13AM (#31326127)
You don't need an SPA for that, you can still filter the DOM with JS (Vanilla or a Reactive framework) and save the state in cookie or the URL, and have the server handle the state.
Re:MVC frameworks aren't dinosaurs but sharks by lelanthran on Thursday May 12, 2022 @10:17AM (#31354569)
> You don't need an SPA for that, you can still filter the DOM with JS (Vanilla or a Reactive framework) and save the state in cookie or the URL, and have the server handle the state.

Doesn't that still reload the entire page when a checkbox is clicked?

Re:MVC frameworks aren't dinosaurs but sharks by yohannparis on Tuesday May 17, 2022 @09:19AM (#31410115)
Not necessarily, you can update the URL with the History or Location API without a reload. In that case you download the whole list and filter it on the client. The assets (images, documents, icons) can be lazy loaded, so the browser will fetch them only when visible.