News for hackers. Stuff that matters.
Re:SPAs Were a Mistake by lolinder on Wednesday March 02, 2022 @07:33PM (#30535514)
We have a PHP app that doesn't reload the full page. We use jQuery's .load(), which has been around since 1.0:

https://api.jquery.com/load/

Re:SPAs Were a Mistake by Graffur on Friday March 04, 2022 @02:24PM (#30559189)
Okay - build a complex site with JQuery and see how it goes..
Re:SPAs Were a Mistake by lolinder on Saturday March 05, 2022 @11:13AM (#30568708)
That's what I'm saying: I maintain a complex web app that is built with PHP-templated HTML with jQuery sprinkled in as needed to make things more interactive. It's not perfect, but it's a far cry from the nightmare that people always seem to imagine when they think of "the jQuery days".

Would I use jQuery if I redid it today? No. But this app does prove to me that progressively-enhanced HTML is a valid path to an app today, it doesn't need to be an SPA.

Re:SPAs Were a Mistake by midrus on Saturday March 05, 2022 @01:53AM (#30565049)
Then you can use Livewire, Unpoly, or HTMX. MVC doesn't mean 90s style reloads anymore.