Book description
Third-Party JavaScript guides web developers through the complete development of a full-featured third-party JavaScript application. You'll learn dozens of techniques for developing widgets that collect data for analytics, provide helpful overlays and dialogs, or implement features like chat or commenting. The concepts and examples throughout this book represent the best practices for this emerging field, based on thousands of real-world dev hours and results from millions of users.
About the Technology
Third-party JavaScript applications are self-contained components, typically small scripts or widgets, that add functionality to websites. As the name implies, they're offered by independent organizations, with code and asset files served from a remote web address.
About the Book
There's an art to writing third-party JavaScript--embeddable scripts that can plug into any website. They must adapt easily to unknown host environments, coexist with other applications, and manage the tricky security vulnerabilities you get when code and asset files are served from remote web addresses. Get it right and you have unlimited options for distributing your apps. This unique book shows you how.
Third-Party JavaScript guides you through the ins and outs of building full-featured third-party JavaScript applications. You'll learn techniques for developing widgets that collect data for analytics, provide helpful overlays and dialogs, or implement features like chat and commenting. The concepts and examples throughout the book represent the best practices for this emerging field, based on thousands of real-world dev hours and results from millions of users.
What's Inside
- Writing conflict-free JavaScript, HTML, and CSS
- Making cross-domain requests from the browser
- How to overcome third-party cookie limitations
- Security vulnerabilities of third-party applications
About the Reader
Written for web developers who know JavaScript, this book requires no prior knowledge of third-party apps.
About the Author
Ben Vinegar is an engineer at Disqus, a third-party JavaScript commenting platform. Anton Kovalyov is a software engineer at Mozilla. They are third-party applications experts whose work has been distributed on millions of websites.
Quotes
Written by two of the most expert developers on the subject.
- Paul Irish, Developer Relations: Google Chrome, jQuery
A must-read for anyone writing serious JavaScript.
- Brian Forester, ProQuest
Great insights into distributed front-end web apps!
- Sopan Shewale, Saba Software
Clearly explained intricacies of third-party Javascript.
- Jake McCrary, DRW Trading Group
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Foreword
- Preface
- Acknowledgments
- About this Book
- About the Authors
- About the Cover Illustration
- Chapter 1. Introduction to third-party JavaScript
- Chapter 2. Distributing and loading your application
- Chapter 3. Rendering HTML and CSS
- Chapter 4. Communicating with the server
- Chapter 5. Cross-domain iframe messaging
- Chapter 6. Authentication and sessions
- Chapter 7. Security
- Chapter 8. Developing a third-party JavaScript SDK
- Chapter 9. Performance
- Chapter 10. Debugging and testing
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Third-Party JavaScript
- Author(s):
- Release date: March 2013
- Publisher(s): Manning Publications
- ISBN: 9781617290541
You might also like
book
JavaScript Application Design
The fate of most applications is often sealed before a single line of code has been …
book
Ajax: The Definitive Guide
Is Ajax a new technology, or the same old stuff web developers have been using for …
book
jQuery in Action, Third Edition
jQuery in Action, Third Edition, is a fast-paced and complete guide to jQuery, focused on the …
book
Stack Frames: A Look From Inside
Teaches you exactly how program memory content and organization is vital for computer security, especially Unix-like …