adamant-state-54102
05/08/2023, 2:57 AMgreat-cartoon-12331
05/08/2023, 3:44 AM?x=1
? i'm looking at this event: https://htmx.org/events/#htmx:beforeRequest ...but there's no obvious way to add a query parameter to an xhr objectgreat-cartoon-12331
05/08/2023, 4:03 AMgreat-cartoon-12331
05/08/2023, 4:17 AM?hx=1
on htmx requests and distinguish htmx requests that way, instead of using the HX-Request
header. this is because i need to cache the responses of certain htmx requests (but not the full-page load responses of the non-htmx requests), and when setting different cache responses by header, you need to set the Vary: HX-Request
response header. but the HX-Request
header doesn't exist in non-htmx requests. so the browser can't tell apart the cacheable/non-cacheable responses. using a query param bypasses the problem because the URL is distinct.adamant-state-54102
05/08/2023, 4:31 AMvictorious-breakfast-76240
05/08/2023, 6:30 AMUnexpected duplicate view-transition-name: slide-it
and the animation not working at all, how do you debug this? is this an issue?adventurous-ocean-93733
05/08/2023, 2:02 PMadventurous-ocean-93733
05/08/2023, 2:04 PMshy-queen-58364
05/08/2023, 2:06 PMhttps://user-images.githubusercontent.com/8974888/231858967-7c37bf1e-335b-4f5a-9760-da97be9f54bb.png▾
adventurous-ocean-93733
05/08/2023, 2:09 PMadventurous-ocean-93733
05/08/2023, 2:12 PMgreat-cartoon-12331
05/08/2023, 3:06 PMhundreds-cartoon-20446
05/08/2023, 4:08 PMgreat-cartoon-12331
05/08/2023, 4:15 PMmysterious-toddler-20573
05/08/2023, 5:44 PMripe-action-67367
05/08/2023, 5:47 PMhttps://cdn.discordapp.com/attachments/725789747212976259/1105189123041525812/th-2897446172.jpg▾
great-article-50141
05/08/2023, 7:50 PMEvery company I've been a part of has redesigned their front end at least once.
These redesigns would be a lot more difficult if we had to edit HTML on the client and the HTML that a server returns.
Also, HTMX is best styled with semantic classes. Which is a problem for companies using Tailwind and utility classes in their HTML. With class-heavy HTML it's nearly impossible to redesign in two different places. And performance suffers and returning larger chunks of HTML.
Despite all that, I want HTMX to be the standard way companies develop for the web. But these 2 problems need to be addressed first, I feel, before companies (like mine) take the leap.
I don't even know where to start with that? lol
I just don't understand how so many programmers have "stockholmed syndromed" themselves into views like thisgorgeous-airport-54386
05/08/2023, 7:50 PMboundless-author-22679
05/08/2023, 7:51 PMgreat-article-50141
05/08/2023, 7:54 PMgreat-article-50141
05/08/2023, 7:55 PMgreat-article-50141
05/08/2023, 7:55 PMgreat-article-50141
05/08/2023, 7:55 PMrefined-waiter-90422
05/08/2023, 7:55 PMrefined-waiter-90422
05/08/2023, 7:57 PMboundless-author-22679
05/08/2023, 7:58 PMboundless-author-22679
05/08/2023, 7:58 PMgreat-article-50141
05/08/2023, 7:59 PMgreat-article-50141
05/08/2023, 7:59 PM