Archive for the ‘Fetch API’ Category

Cache Fetched AJAX Requests Locally: Wrapping the Fetch API

Posted on: No Comments
This article demonstrates how you implement a local cache of fetched requests so that if done repeatedly it reads from session storage instead. The advantage of this is that you don't need to have custom code for each resource you want cached. Follow a...

Quick Tip: What Are Factory Functions in JavaScript

Posted on: No Comments
You can't get far as a JavaScript programmer without learning about functions and objects, and when used together, they are the building blocks we need to get started with a powerful object paradigm called composition. Today we'll look at some idiomati...

Asynchronous APIs Using the Fetch API and ES6 Generators

ECMAScript 6 (a.k.a. ECMAScript 2015 or ES6) brings a number of new features to JavaScript which will make the language a good fit for large applications. One of these features is better support for asynchronous programming using promises and generator...