~/talk

I .promise() to show you .when() to use Deferreds

links:none on file
slides:none on file

Demonstrates seven concrete patterns using jQuery Deferreds: bundling three parallel Ajax sources with when to render a sidebar, storing a Deferred on page objects so some pages wait for data while others resolve immediately, a 10-line caching trick that saves a round trip by reusing a resolved Deferred, wrapping setTimeout as a Deferred-based wait, combining many animations with when.apply to return one Deferred, and using notify progress plus resolve/reject to track long tasks; code examples show these patterns working in practice.

AI-written summary · about

  1. 0:00Intro
  2. 1:23alex.define()
  3. 2:31deferred history
  4. 6:05Bundling AJAX Calls
  5. 8:19Template Pattern
  6. 10:41Cache Money
  7. 12:38Pretty Syntax
  8. 15:34Arbitrary events
  9. 17:32Managing Animations
  10. 20:01Things I didn't ever mention but are still
  11. 22:56Deferred best practices
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.