DeepRead
Cover of Async JavaScript

Async JavaScript

Trevor Burnham · 2012

Writing, design and web craft › Web performance and JavaScript patterns

#13,928 most recommended

About the book

Asynchronous programming in JavaScript, mainly for browser-based applications. It covers the mechanisms that run code outside the normal call sequence, including timers, events, and XMLHttpRequest/AJAX, and the patterns for working with them. Code that depends on asynchronous results is easier to write, read, and maintain when its control flow is made explicit, rather than nested inside ever-deeper callbacks. The book presents callbacks, event-based design, and promises as ways to sequence dependent operations, run independent ones concurrently, and handle errors. It argues that these patterns let developers build more responsive interfaces with less code.

Written by Claude from what it knows of this book.

What Hacker News says 100% recommend · 0% critical

In the commenters’ own words

  • Good overview of jQuery Deferred and how to use promises (at least the jQuery flavor). Promises (or futures) are a simple concept: an object-level abstraction…

    etrinh · 2013 · in Escape from Callback Hell

  • Regarding #2, I highly recommend reading Trevor Burnham's excellent book Async JavaScript . It goes into a great deal of detail explaining how async…

    joshuacc · 2013 · in Common JavaScript Gotchas

What Open Library readers say

No Open Library reader has rated it yet.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

Details

First published
2012
ISBN
9781475247367
Editions known
2 at Open Library
Open Library
OL31526025W

Explore in the mosaic

Read next: its neighbours on the mosaic