deferred.progress() adds handlers that run when the Deferred sends progress notifications with notify() or notifyWith(). It is available since jQuery 1.7 and returns the same Deferred for chaining.
Syntax
Start with these common calls. Keep them short and readable.
jQuery
deferred.progress(progressCallbacks)
progress() → listen for updates
notify() → emit an update (owner)
done() → final success
fail() → final failure
progress can run many times while pending
native Promise has no progress API
Call
What it does
progressCallbacks
Function or array of functions
Extra callback args
More functions / arrays on the same call
Return
Same Deferred (chainable)
Since
jQuery 1.7
Load jQuery before your script (CDN or local file), then wrap DOM work in $(function () { ... }) when needed.
Parameters
Parameter
Description
Step 1
Create a Deferred (or receive one from an async helper).
Step 2
Call progress(fn) — optionally add more handlers or arrays of handlers.
Step 3
While work runs, call notify(args…) to fire those handlers.
Return Value
Return Value
Description
See examples
Check the examples below for what this API returns in common cases.
jQuery Examples
Example 1 — Status Message Updates
Register progress(), receive two notify() calls, then resolve().
Register two handlers. Both sit in the progress queue.
One notify. jQuery invokes A, then B, with "loading".
Same args. Each handler receives the notify arguments.
Frequently Asked Questions
progress() adds handlers that run when the Deferred generates progress notifications via notify() or notifyWith(). It does not settle the Deferred — resolve() and reject() still control the final outcome.
done() runs once on successful resolve. progress() can run many times while the Deferred is pending. Use progress for interim updates; use done for the finish.
notify() and notifyWith() on the same Deferred. Each call invokes every registered progress callback with the arguments you passed.
Yes. progress() accepts a function or an array of functions, and you may pass multiple arguments (each a function or array).
New notify() calls no longer fire progress handlers after settlement. But a progress callback added after resolve/reject runs immediately with the arguments from the last notify()/notifyWith().
No. Progress notifications are a jQuery Deferred feature. Native Promises only fulfill or reject — use separate callbacks, events, or other patterns for mid-flight updates.