- Chapters 6 to 10 cover many practicalities of client-side web development, like dependency management, unit testing, debugging, interesting browser APIs and deployment tips.
Highlights and references
- Chapter 10 (“Deploying”) is full of very good tips and information.
- All the example code is on GitHub.
- HJS plugin for jQuery for a nice syntax to create classes.
- ES5-shim for browsers that don’t support Ecmascript 5 yet.
- Chapter 2 was a very good introduction about events. removeEventListener (p. 41), stopPropagation/preventDefault (p. 43), list of properties (p. 44), load vs. DOMContentLoaded (p. 45), delegating events (p. 46) and custom events (p. 47-49), among others.
- Reference to blog post about namespacing.
- Object.create discussed on page 55.
- Using URL hash for URLs on pages 82, 83.
- Didn’t really understand the explanation for the HTML5 history API on p. 85. Alternatively, see the HTML5 history API on Dev Opera.
- Very interesting file API on p. 103 and p. 111. Forget the drag-n-drop (reason) and the copy/paste.
Note that all page references are pages in the PDF file, not pages in the book!