[JAVASCRIPT][The Problem with Native JavaScript APIs].pdf

(763 KB) Pobierz
The Problem with
Native JavaScript
APIs
External JavaScript Libraries
Still Matter
Nicholas C. Zakas
www.it-ebooks.info
JavaScript Starter Kit
The Tools You Need to Get Started with JavaScript
“JavaScript is now a language
every developer should know.”
– Mike Loukides, Vice President of Content Strategy for O’Reilly Media
Buy any two titles
and get the 3rd Free.
Use discount code:
OPC10
Or, buy them all for
just
$149
/ 60% off.
Use discount code:
JSSKT
www.it-ebooks.info
The Problem with Native
JavaScript APIs
Nicholas C. Zakas
Beijing
Cambridge
Farnham
Köln
Sebastopol
Tokyo
www.it-ebooks.info
The Problem with Native JavaScript APIs
by Nicholas C. Zakas
Copyright © 2012 O’Reilly Media. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol,
CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional
use. Online editions are also available for most titles (http://my.safaribookson
line.com).
For more information, contact our corporate/institutional sales depart-
ment: 800-998-9938 or
corporate@oreilly.com.
Editor:
Mac Slocum
Production Editor:
Melanie Yarbrough
July 2012:
First Edition.
Cover Designer:
Karen Montgomery
Interior Designer:
David Futato
Illustrator:
Robert Romano
Revision History for the First Edition:
2012-07-20
First release
See
http://oreilly.com/catalog/errata.csp?isbn=9781449339951
for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are regis-
tered trademarks of O’Reilly Media, Inc.
The Problem with Native JavaScript APIs
and related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their
products are claimed as trademarks. Where those designations appear in this book,
and O’Reilly Media, Inc., was aware of a trademark claim, the designations have
been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher
and authors assume no responsibility for errors or omissions, or for damages re-
sulting from the use of the information contained herein.
ISBN: 978-1-449-33995-1
1344364955
www.it-ebooks.info
Table of Contents
The Problem with Native JavaScript APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Issues with Native APIs
Case Study: matchMedia()
Facades and Polyfills
What to Do?
2
3
5
6
iii
www.it-ebooks.info
Zgłoś jeśli naruszono regulamin