![The Problem with Native JavaScript APIs by [Zakas,Nicholas C.]](https://images-eu.ssl-images-amazon.com/images/I/41MX4Wbop6L._SY346_.jpg)
The Problem with Native JavaScript APIs
by Nicholas C. Zakas
File Size: 1079 KB
Print Pages: 16 pages
Publisher finelybook 出版社: O’Reilly Media; 1 edition (19 July 2012)
Language 语言: English
ISBN-13: 9781449339951
ASIN: B008MYLMHG
Many features inspired by popular JavaScript libraries are now available as native JavaScript APIs in today’s powerful browsers. While that may seem convenient given all of the JavaScript you need to write,relying on these APIs will only make code maintenance more difficult in the long run.
In this report,Nicholas Zakas—consultant and former front-end tech leader at Yahoo!—provides a case study to show how different browsers can develop native APIs for the same specification and still end up with different interpretations. You’ll discover how these APIs can tie your code to specific browsers,forcing you to upgrade application logic whenever new browsers and new browser versions are released.
Contents
The Problem with Native JavaScript APIs 1
Issues with Native APIs 2
Case Study: matchMedia() 3
Facades and Polyfills 5
What to Do? 6
The Problem with Native JavaScript APIs
相关推荐
- Pure React: Learn vanilla React,without all the libraries. A hands-on,learn-by-doing intro to React for beginners,4th Edition
- Building and Delivering Microservices on AWS: Master software architecture patterns to develop and deliver microservices to AWS Cloud
- Performance Engineering Best Practices: Building high performance cloud IT platforms using Java
- Red Hat Certified Engineer (RHCE) Ansible Automation Study Guide: In-Depth Guidance and Practice
finelybook
