4 ms·
No need to build and maintain a whole api layer? One code base rather than two? Simple pages become simple again?
by bb88 3y ago
No need to build and maintain a whole api layer?
One code base rather than two?
Simple pages become simple again?
- pier25 3y agoWith jQuery and AJAX you're still sending HTML fragments just like with HTMX.
- SJC_Hacker 3y ago> With jQuery and AJAX you're still sending HTML fragments just like with HTMX. AJAX philosophy was based around client side render - Asynchronous Javascript And XML. XML was JSON before JSON. jQuery is/was just a fetching library. The modern fetch() API as well as Promises/async/await made it largely obsolete, although some people still swear by it (they just released a new version actually). You can fetch raw HTML and dump it into innerHTML, but thats not how most people use it. They would do client-side render based on the XML (later JSON) returned.