deferred.notify(args) fires progress callbacks while the Deferred is still pending (since jQuery 1.7). It does not resolve or reject — use it for percent done, step labels, or status text.
Syntax
Start with these common calls. Keep them short and readable.
jQuery
dfd.progress(fn)
dfd.notify(25) // fn(25) — still pending
dfd.notify(50) // fn(50)
dfd.resolve("ok") // done handlers; notify stops working
after settle → notify() ignored
Call
What it does
Deferred
Must still be pending
args
Passed to each progress callback
Return value
Same Deferred (chainable)
Load jQuery before your script (CDN or local file), then wrap DOM work in $(function () { ... }) when needed.
Resolve finishes the job and runs the done handler.
Frequently Asked Questions
notify(args) calls progress callbacks while the Deferred is still pending. It does not finish the Deferred — you still call resolve() or reject() when the work completes.
resolve() settles success and runs done(). notify() only fires progress() (or then progress handlers) and leaves state as pending until resolve or reject.
Register with deferred.progress(fn), or the progress slot of then(). Each notify() passes its args to those callbacks in registration order.
Yes. While pending, you can notify many times (for example 25%, 50%, 75%). After resolve or reject, further notify() calls are ignored.
Usually no. Only the Deferred creator should notify. Give callers a restricted promise via deferred.promise() so they can listen but not change state.
No. Progress is a jQuery Deferred feature. Native Promises only fulfill or reject; use callbacks, events, or other patterns for progress outside jQuery.