Callbacks are the cornerstone of JavaScript since it is single-threaded in nature. This can quickly turn into spaghetti code when handling multiple, dependent AJAX calls.
Enter Promises
Deferred and promise are part of jQuery since version 1.5 and they help in handling asynchronous functions like AJAX… Continued here
Leave a Reply