Web API Cookbook cover

Web API Cookbook

Level Up Your JavaScript Applications
by Joe Attardi
Unlock the power of modern web browser APIs.

Also available from:

Web API Cookbook covers a wide range of browser-based APIs and provides valuable examples for all skill levels. Plus, Joe's writing style and thoughtful explanations make the learning enjoyable. This is a must-read for web developers!

This book offered fresh insights and introduced me to APIs I never knew existed.

JavaScript gives web developers great power to create rich interactive browser experiences, and much of that power is provided by the browser itself. Modern web APIs enable web-based applications to come to life like never before, supporting actions that once required browser plug-ins. Some are still in an experimental stage, but many are ready for use today.

This hands-on cookbook explores the powerful APIs available in modern browsers and guides you through the specific tasks that they unlock. Because these features are web standards, there is comprehensive documentation available from trusted resources such as MDN Web Docs. The knowledge you'll gain is transferable across different companies and projects.

With this book, you'll:

  • Learn the breadth of functionality available in modern browser APIs
  • Explore future APIs that are still in an experimental stage
  • Discover newer elements, such as dialog that replaces the need for a third-party library
  • Build more powerful and interactive web applications using native APIs
  • Understand the permissions model used by the browser to unlock functionality such as geolocation and push notifications

Contents

  1. Explore fundamental asynchronous JavaScript concepts, including callback functions and Promises.
  2. Store and retrieve data using persistent storage.
  3. Work with the URL and History APIs.
  4. Communicate with remote servers and APIs.
  5. A more sophisticated data store which can store collections of objects.
  6. Listen for changes to DOM elements and their structure.
  7. Enhance your forms with the FormData and Constraint Validation APIs.
  8. Apply keyframe animations to elements programmatically.
  9. Add voice synthesis and recognition to your apps.
  10. Read and write file data.
  11. Explore the internationalization APIs built in to the browser.
  12. Create custom HTML elements.
  13. Use dialogs and other interactive elements.
  14. Interact with sensors and services on your device.
  15. Capture performance metrics.
  16. Learn about different ways to present information using the Console API.
  17. Explore CSS related APIs.
  18. Work with images and video.
Web API Cookbook
Joe Attardi