deferred.progress()

Add handlers to be called when the Deferred object generates progress notifications.

.deferred.progress(progressCallbacks, progressCallbacks)🡢 Deferred

progressCallbacks Function, ArrayA function, or array of functions, to be called when the Deferred generates progress notifications.
progressCallbacks Function, ArrayOptional additional functions, or arrays of functions, to be called when the Deferred generates progress notifications.

The deferred.progress() method accepts one or more arguments, all of which can be either a single function or an array of functions. When the Deferred generates progress notifications by calling notify or notifyWith, the progressCallbacks are called. Since deferred.progress() returns the Deferred object, other methods of the Deferred object can be chained to this one. When the Deferred is resolved or rejected, progress callbacks will no longer be called, with the exception that any progressCallbacks added after the Deferred enters the resolved or rejected state are executed immediately when they are added, using the arguments that were passed to the .notify() or notifyWith() call. For more information, see the documentation for jQuery.Deferred().

Looking for a Web Developer?

👋

Hi! I'm Basti, author of this site. If you are looking for a web developer with 15+ years of experience, holla at me!

Be it the good 'ol jQuery, vanilla JS or modern frameworks like Vue and Svelte, front- or backend, I can help you.

Just write me at jobs@jqapi.com :)