Lucene search
+L

322 matches found

Jake Archibald's Blog
Jake Archibald's Blog
•added 2015/03/24 12:00 a.m.•25 views

That's so fetch!

There's been some confusion around the new fetch API recently. Let's clear things up. The first thing you'll notice about fetch is it's a massive improvement on XMLHttpRequest in terms of API design. Here's how to get some JSON using XHR: var xhr = new XMLHttpRequest; xhr.open'GET', url;...

6.8AI score
SaveExploits0
Jake Archibald's Blog
Jake Archibald's Blog
•added 2014/08/12 12:01 a.m.•11 views

What happens when you read a response?

There's a bit of disagreement over the behaviour of requests and responses in the fetch API, curious to know what you think… Setting the scene The new fetch API gives the web proper Request and Response primitives. fetch'/whatever'.thenfunctionresponse return response.body.asJSON; .thenfunctionda...

7AI score
SaveExploits0
Rows per page
Query Builder