Is it possible to get a JSON in jQuery synchronously without using the async: false option (which apparently has been deprecated)? I also would prefer not to put everything into the success function.
Is it possible to get a JSON in jQuery synchronously without using the async:
Share
No, there is no other option than
async: false. I wouldn’t recommend it if there were.For the success function, you can simply pass another function that will be executed.
For example: