-2

would you please tell me what is the purpose of using $.Deferred() JQuery's Object with it's predefined methods, in functions with javascript. I've read the API but I didn't understand the goal exactly. Thank you

1 Answers1

2

you can follow this one Asynchronous vs synchronous execution, what does it really mean?

simply for asynchronous call you can use $.ajax and if you gonna need result in synchronous way then you can use $.Deferred()

Community
  • 1
  • 1
Tareq Jobayere
  • 709
  • 7
  • 13