List of Listings
Chapter 1. Introduction to third-party JavaScript
Listing 1.1. Sample content provider web page loads both local and external scripts
Listing 1.2. Initializing the Google Maps widget
Listing 1.3. Tracking user signups with the Mixpanel JS API
Listing 1.4. Using Facebook’s Graph API to fetch and display a list of mutual friends
Listing 1.5. Server implementation of widget.js, written in Python and Flask—server.py
Chapter 2. Distributing and loading your application
Listing 2.1. Asynchronous script include
Listing 2.2. widget.js: main script body
Listing 2.3. Asynchronous JavaScript loader function
Listing 2.4. dom.js—Camera Stork library file that contains DOM utility functions
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.