Skip to content

Instantly share code, notes, and snippets.

@deyvicode
Last active April 29, 2021 15:09
Show Gist options
  • Save deyvicode/f8d6c180bad55e28c34dce7beac723eb to your computer and use it in GitHub Desktop.
Save deyvicode/f8d6c180bad55e28c34dce7beac723eb to your computer and use it in GitHub Desktop.
A async false request example #ajax #javascript
$.ajax({
url: "/route",
type: "get",
async: false, // wait for res this request
success: res => {
},
error: err => {
console.log(err);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment