4 ms·
But htmx doesn't update the body content of the document via JavaScript APIs. It updates them via HTML APIs. That is, the content coming over the wire from the
by jaredcwhite 4y ago
But htmx doesn't update the body content of the document via JavaScript APIs. It updates them via HTML APIs. That is, the content coming over the wire from the backend is HTML, not JSON.
If you're trying to claim that literally any web page which uses JavaScript in any capacity to update any DOM on the page ever suddenly means it's an SPA, that seems like _quite a stretch_.
- dragonwriter 4y ago> But htmx doesn't update the body content of the document via JavaScript APIs. Yes, it does. > It updates them via HTML APIs. It updates then by using JS code calling DOM APIs. Just like any other SPA. > the content coming over the wire from the backend is HTML, not JSON. The content coming over the wire being HTML, JSON, XML, or text/plain has no bearing on whether the JS framework inserting the result of processing it somewhere on a single pre-existing page is a SPA framework.