window.fetch lands in Chrome Canary Build

The latest Chrome Canary build has got support for Fetch API which is aimed to be the modern, simpler and advanced replacement of XMLHttpRequest object. Once the window.fetch API becomes a regular feature of leading web browsers, developers can start using this powerful tool in production.

To test working of the window.fetch in latest Chrome canary build, you can play with this sample code by Googler Addy Osmani. You need to enable the Chrome flag “Experimental Web Platform features” from chrome://flags page.

window-fetch-xhr

Interested developers should take a look on the API documentations available here.

Apart from Google, other vendors are also working on implementing Fetch API in their browsers. Mozilla Firefox nightly builds would start supporting window.fetch really soon. Moreover, Microsoft has listed Fetch API as “Under Consideration” on its modern.IE portal.

Alternatively, one can use Fetch polyfill to start using Fetch API right now, without waiting for native implementation in web browsers.

arpit

Posted by Arpit

Arpit is a web enthusiast watching browsers for long. He maintains several browser-based tools including many popular extensions. Follow Arpit on Twitter, or email him at editor@browsernative.com.
Post last updated on January 14, 2015.

You may also like ...

Leave a Reply

Your email address will not be published. Required fields are marked *