web.dev LIVE is now over! Head to web.dev/live to watch all the sessions, see top Q&A, and more.

Introduction to the Fetch API

Fetch is a new API that makes ‘Fetch’ing remote resources much easier. Like XMLHttpRequest, Fetch can be used for making requests same origin or cross domain requests. Fetch uses a cleaner, more powerful API that separates the request from the response and uses a promise to return the response.