Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> while the jQuery promise-handling sucks

You don't need to use that API. Deferred is compatible with Promise, you can just simply `await $.post()` etc.

See last section of http://api.jquery.com/jQuery.Deferred/



Awesome thank you, I didn't know this!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: