Chapter 9. Readying our SPA for production

This chapter covers
  • Optimizing SPAs for search engines
  • Using Google Analytics
  • Placing static content on a content delivery network (CDN)
  • Logging client errors
  • Caching and cache busting

This chapter builds on code we’ve written in chapter 8. We recommend copying the entire directory structure of that chapter into a new “chapter_9” directory and updating the files there.

We’ve finished writing a responsive SPA using a well-tested architecture, but some challenges remain that are less about programming and more about operations.

We need to adjust our SPA so that users can use Google and other search engines to find what they need. Our web server needs to interact with the crawler ...

Get Single Page Web Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.