3 ms·
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 witho
by Seb-C 5y ago
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.
- earthboundkid 5y agoAre 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.
- Seb-C 5y agoYes, 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.