The Promise object is used for deferred and asynchronous computations. A Promise is in one of four states:
This demo gets a 'news feed' (see below) from data/feed.json using XHR.
There's more information about JavaScript Promises in Jake Archibald's article on HTML5 Rocks.