Chapter 1. Introduction to third-party JavaScript

This chapter covers

  • Explaining third-party JavaScript
  • Real-world examples of third-party applications
  • Walk-through implementation of a simple embedded widget
  • Identifying third-party development challenges

Third-party JavaScript is a pattern of JavaScript programming that enables the creation of highly distributable web applications. Unlike regular web applications, which are accessed at a single web address (http://yourapp.com), these applications can be arbitrarily loaded on any web page using simple JavaScript includes.

You’ve probably encountered third-party JavaScript before. For example, consider ad scripts, which generate and display targeted ads on publisher websites. Ad scripts ...

Get Third-Party JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.