Pitfalls and Opportunities of Single Page Applications
summary
Covers concrete tradeoffs: uses Backbone and a tiny simple-history.js demo to show pushState over hashbang with working back/forward and no hash fallbacks, demoing continuous audio playback and client routing; recommends server-side rendering and code reuse (Node.js) to fix slow first loads — example code on GitHub — and notes Twitter dropped hashbangs; describes pragmatic error handling and aggregation using global onerror plus services like Airbrake/Bugsense for thousands of client errors, and sharesable templates via server-side rendering with shared Node.js code.
AI-written summary · about
chapters (11)
- 0:00Start
- 4:27Opportunities
- 5:53Pitfalls
- 7:06Single Page
- 9:16HTML5 history API
- 10:31HTML5 history libraries
- 17:03Server side rendering
- 22:06Error handling
- 22:22Error types
- 24:52Aggregation options
- 26:52Worth the trouble?
related talks
51mBuilding Amazing Single Page Applications the Right Way
24mBuilding Realtime Singlepage Apps
38mThe Front-End Future
40mClient Side MVC and The Gosh Darn Back Button
38mEmbrace the frontend revolution
18mThe need for speed - Single-page apps, Optimistic UIs, Reactivity
30mJust another ECMAScript Trait Syntax ProposalStop breaking the web and start building server-rendered web apps using next.js
32mWhy you don’t need a Single Page App
