Upgrade to Pro — share decks privately, control downloads, hide ads and more …

KualaLumpurJS: Javascript SPA (Single Page Application)

TM Lee
March 16, 2016

KualaLumpurJS: Javascript SPA (Single Page Application)

This deck discusses the historical development of SPA (Single Page Application) of Javascript, the problems that arise with it, and the alternatives to consider.

TM Lee

March 16, 2016
Tweet

More Decks by TM Lee

Other Decks in Technology

Transcript

  1. How do I build a SPA? Load all necessary JS

    code at the beginning of the app Pull content from the backend via an API Content gets updated dynamically JS Frameworks Backbone AngularJS MeteorJS Ember ReactJS
  2. This is fantastic, SPA is great, let’s build it! Not

    so fast. SPA has its shortcomings.
  3. Once you start building a SPA that emulates a multi-page

    website, you’re suddenly jumping through hoops that the browser/HTML previously gave you for free - freyr, HN News SPA is a total b*tch to do user activity tracking and quirks and glitches just never end. - gesman, HN News I’ve seen plenty more of SPA’s become an unmaintainable spaghetti nightmare and also seen many non-SPA’s work splendidly. - voidr, HN News
  4. What are the shortcomings of a SPA? • Code Structure

    • Navigation • Object State • Event Firing • SEO • Analytics • Automated Testing • Cross Browser Compatibility
  5. Summary • SPA offers “native-like” and speedy user experience •

    SPA is a complex topic • Execute according to the need of the product!