by Xeoncross · 2mo ago · 0 comments
fetch('/my/api/content.html')
.then(response => response.text())
.then(html => {
document.getElementById('content').innerHTML = html;
});
I don't mean to imply this is close to total number of Htmx features, but fetching islands of content is the core idea and I feel like we're way past feature bloat at this point for something that is supposed to be simpler than React (Preact is only 10kB)