News for hackers. Stuff that matters.
Re:Just Use HTML by hu3 on Tuesday September 16, 2025 @10:57AM (#45263195)
I think re-rendering headers, menu and footers for CRUD applications on every page change is suboptimal for CRUD web apps.

An easy win is to replace just the page main content and keep headers, menu and footers between navigations in the system.

Re:Just Use HTML by purerandomness on Tuesday September 16, 2025 @12:40PM (#45264584)
That's a very good idea, and exactly what HTMX (and similar implementations) do.
Re:Just Use HTML by port11 on Tuesday September 16, 2025 @03:49PM (#45267077)
Okay, but, like, how much worse is it to re-render the whole thing? And it's not like Turbo hasn't been around for more than a decade, doing exactly that, for free, automatically.
Re:Just Use HTML by hu3 on Wednesday September 17, 2025 @10:27AM (#45276240)
Yeah turbo and htmx is great for that.
Re:Just Use HTML by sam0x17 on Thursday September 18, 2025 @02:37PM (#45293356)
rails has been doing this with turbolinks (not even called that anymore) since like 2012