---
title: "Discussion on \"The one about choosing where htmx logic belongs\" | Hashnode"
description: "Discussion on \"The one about choosing where htmx logic belongs\". Compare view-level events and server response headers to handle htmx failures. Explore the trade-offs and decide where your logic truly belongs."
url: "https://hashnode.com/posts/the-one-about-choosing-where-htmx-logic-belongs/6a39a47af0663ae9c8d3de48"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The one about choosing where htmx logic belongs](https://davidmontesdeoca.dev/the-one-about-choosing-where-htmx-logic-belongs?utm_source=hashnode&utm_medium=feed)

Compare view-level events and server response headers to handle htmx failures. Explore the trade-offs and decide where your logic truly belongs.

Jun 22 · 7 min read · davidmontesdeoca.dev  
Updated Jul 29  
Read the article

-   [#htmx](https://hashnode.com/tag/htmx)
-   [#html](https://hashnode.com/tag/html)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#security](https://hashnode.com/tag/security)
-   [#http](https://hashnode.com/tag/http)
-   [#hypermedia](https://hashnode.com/tag/hypermedia)

## Written by

[David Montesdeoca](https://hashnode.com/@backpackerhh)

@backpackerhh · Gran Canaria, Canary Islands

  
[View profile](https://hashnode.com/@backpackerhh)

Software Engineer

I love learning new stuff, especially when it comes to building software. I'm really interested in software architecture, clean code, testing and best practices.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
