The Problem with Native JavaScript APIs

The Problem with Native JavaScript APIs

4.11 - 1251 ratings - Source

Many features inspired by popular JavaScript libraries are now available as native JavaScript APIs in todaya€™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 Zakasa€”consultant and former front-end tech leader at Yahoo!a€”provides a case study to show how different browsers can develop native APIs for the same specification and still end up with different interpretations. Youa€™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.You can use this method in Internet Explorer 10+ (as msMatchMedia( )), Chrome, Safari 5.1+, Firefox 9+, and Safari for iOS 5+. However, until very recently, there were some bugs that caused this functionality to work very differently acrossanbsp;...

Title:The Problem with Native JavaScript APIs
Author:Nicholas C. Zakas
Publisher:"O'Reilly Media, Inc." - 2012-07-19


You Must CONTINUE and create a free account to access unlimited downloads & streaming