Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Foreword

Preface

Acknowledgments

About this Book

About the Cover Illlustration

1. Introducing SPAs

Chapter 1. Our first single page application

1.1. Definition, a little history, and some focus

1.1.1. A little history

1.1.2. What took JavaScript SPAs so long?

1.1.3. Our focus

1.2. Build our first SPA

1.2.1. Define the goal

1.2.2. Start the file structure

1.2.3. Set up Chrome Developer Tools

1.2.4. Develop the HTML and CSS

1.2.5. Add the JavaScript

1.2.6. Inspect our application using Chrome Developer Tools

1.3. The user benefits of a well-written SPA

1.4. Summary

Chapter 2. Reintroducing JavaScript

2.1. Variable scope

2.2. Variable hoisting

2.3. Advanced variable hoisting and the execution context object

2.3.1. Hoisting

2.3.2. Execution context and the execution context object

2.4. The scope chain

2.5. JavaScript objects and the prototype chain

2.5.1. The prototype chain

2.6. Functions���a deeper look

2.6.1. Functions and anonymous functions

2.6.2. Self-executing anonymous functions

2.6.3. The module pattern���bringing private variables to JavaScript

2.6.4. Closures

2.7. Summary

2. The SPA client

Chapter 3. Develop the Shell

3.1. Grok the Shell

3.2. Set up the files and namespaces

3.2.1. Create the file structure