iteration

The SPA Episode (Single Page Apps)

Episode Summary

In this episode we walk through pros / cons of SPA's. Pros / Cons, when to use them, what they are good at, frameworks, alternatives and more.

Episode Notes

John: Welcome to Iteration, a podcast about programming, development, and design.

https://macwright.com/2020/05/10/spa-fatigue.html

Topics / Guiding Questions

What's a SPA?

From the article

  1. The main UI is built & updated in JavaScript using React or something similar.
  2. The backend is an API that that application makes requests against.

The more techincal one:

https://developer.mozilla.org/en-US/docs/Glossary/SPA

An SPA (Single-page application) is a web app implementation that loads only a single web document, and then updates the body content of that single document via JavaScript APIs such as [XMLHttpRequest]() and Fetch when different content is to be shown.

This therefore allows users to use websites without loading whole new pages from the server, which can result in performance gains and a more dynamic experience, with some tradeoff disadvantages such as SEO, more effort required to maintain state, implement navigation, and do meaningful performance monitoring.

Why do developers choose SPAs?

Do end-users care about SPAs?

What SPAs have you worked on / maintained?

When should you reach for a SPA?

What's wrong with this SPA's?

Increased complexity — Development and deployment

SEO + Speed — Have to do "Server Side Rendering"

Maintainability? Stability?

If not a SPA then what? (Is this a different Episode?)

What's good about server rendered?

What's bad about Server Rendered?

What's good about SPA's

What's bad about SPA's

Closing Thoughts

Picks