Get slider data with the Fetch API

Go to Source

See the Code
See it Full Page
See Details

The [fetch API]( is pretty damn awesome! It enables easy 'ajax' calls in vanilla Javascript and uses promises instead of callbacks. The browser support isn't quite there yet, but with the [window.fetch polyfill from github]( you can happily run it with support up to IE9.

In this pen I retrieve some JSON data through the fetch API to fill the slider with data. If you want to know a bit more about this all in detail, check out this [blogpost](

This Pen uses: Jade, SCSS, JavaScript, and