There are a few different ways to make AJAX requests. make requests using the tried and true but somewhat cumbersome XHR way. use the jQuery library to smooth out making async requests using its API.
If you’ve ever used JavaScript fetch API to enhance a form submission, there’s a good chance you’ve accidentally introduced a duplicate-request/race-condition ...