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

Isomorphic JavaScript

Isomorphic JavaScript

A short presentation on "isomorphic" JavaScript, including a brief history of JavaScript and the basics of the isomorphic pattern.

Christopher Harrison

January 27, 2015
Tweet

More Decks by Christopher Harrison

Other Decks in Programming

Transcript

  1. A (Very) Brief History of JavaScript Funny little scripting language

    to create pop-ups
 Java : JavaScript :: Laughter : Slaughter
  2. A (Very) Brief History of JavaScript Funny little scripting language

    to create pop-ups
 Java : JavaScript :: Laughter : Slaughter Increasingly useful/compatible DOM manipulation XMLHttpRequest
  3. A (Very) Brief History of JavaScript Funny little scripting language

    to create pop-ups
 Java : JavaScript :: Laughter : Slaughter Increasingly useful/compatible DOM manipulation XMLHttpRequest Standardisation (ECMAScript) and the engine arms race
  4. A (Very) Brief History of JavaScript Funny little scripting language

    to create pop-ups
 Java : JavaScript :: Laughter : Slaughter Increasingly useful/compatible DOM manipulation XMLHttpRequest Standardisation (ECMAScript) and the engine arms race JavaScript on the server
  5. –Jeff Atwood “ Any application that can be written in

    JavaScript, will eventually be written in JavaScript”
  6. Traditional SPAs App, often in its entirety, is pushed to

    the client App facilitates communication between the end user and an API, with a blank initial state App runs completely within the end user’s browser, taking time or user input to initialise Client ! ! ! ! (Browser) API Server App
  7. “Isomorphic” JavaScript Rendering and application logic code is homogenised for

    both server and client Initial page load is rendered fully by the server Client uses this to bootstrap the code, once it’s ready Server (Node.js) App API Client (Browser)
  8. Holier Grail We can create web apps that still work

    properly* without JavaScript on the client * YMMV
  9. Holier Grail We can create web apps that still work

    properly* without JavaScript on the client * YMMV