3 ms·
You can still return html partials from your endpoints and use htmx to swap content without a full reload :)
by loloquwowndueo 3y ago
You can still return html partials from your endpoints and use htmx to swap content without a full reload :)
- JaggerJo 3y agoyes, but then it’s not one request per page
- loloquwowndueo 3y agoOnly if there’s an update - htmx will encourage you to render full html pages but still gives you the ability to do in-place updates which is what most folks think a JS front end with a json Api backend and client side rendering is needed for.
- halfcat 3y agoHTMX can swap multiple DOM elements from a single HTTP response https://htmx.org/extensions/multi-swap/ https://htmx.org/extensions/multi-swap/