Ben Pate

Results 85 comments of Ben Pate

In addition, I think we should bubble up some common HTTP errors into the `err` return value. For instance, if we get an HTTP 500 error from the server, then...

Great. This will be a huge addition -- especially for APIs that use HTTP status codes to report errors, like most of the ones I'm working to integrate. Right now,...

Yeah, I'm a big fan of Typescript, too. But it's unlikely that htmx will get translated fully into TS. Fortunately, we have made the compromise of using Typescript/JSDoc comments, which...

@khalwat - Yes. I'm very familiar with Typescript, and I'd love to use Typescript in htmx, but that's not an option. However, [the Typescript compiler CAN parse JS files directly](https://www.typescriptlang.org/docs/handbook/intro-to-js-ts.html),...

Eh, not really. It was just trying to close up a weird corner case that we found because of some other bug. Honestly, if you're connecting to port 99999999999, you...

Hola @Hades32 - This isn't exactly *intended* behavior, so much as the default way that htmx handles requests. In the code you're highlighting, we just call the standard [htmx.ajax()](https://htmx.org/api/#ajax) function...

Yes, you're right. It's not "correct" as in the right thing to do. It is something that we've inherited from the default behavior, and will be pretty tough to fix...

Hey @checketts - I answered you on Reddit. You're 100% correct. Thanks for keeping this issue visible. I'm looking forward to updates in htmx that will make preload (and a...

Hey @sirinath -- from this discussion, it looks like you're still just discussing this feature, and that it didn't get built, yet. Is that right? Let me know if you're...