News for hackers. Stuff that matters.
Re:Vue 3 as the New Default by Seb-C on Tuesday February 08, 2022 @11:31AM (#30260457)
I've been thinking like forever that if we had a standard, pure-html equivalent to jQuery's `$('.foo').load('url...')`, we could have a lot of great sites without any JS at all (I'm not talking about the minority of legit cases where react/vue/angular shines).

Similar to a link targetting an iframe, but without an actually ugly iframe.

Re:Vue 3 as the New Default by earthboundkid on Tuesday February 08, 2022 @01:14PM (#30262142)
Are you familiar with HTMX? Sounds like what you want. I'm not a huge fan, but I think it would be good if something like it were a native capability.
Re:Vue 3 as the New Default by Seb-C on Wednesday February 09, 2022 @11:17AM (#30274409)
Yes, that's the same core idea. I mean, there are plenty of solutions in JS, and it's a one-liner with fetch anyway, but having a native way would have been cool.

I was thinking about something more like `<a href="..." target="#someDiv">`.

That could be some handy (albeit rudimentary) foundation to build maintainable sites on a static server without any JS or build pipeline.