Ben Paddock
Software Developer
Ben Paddock
So ... a Javascript code base sharing the same form on client and server.
By Loudon dodd (Own work) via Wikimedia Commons
Server
Client
<Cue Demo>
<html>
<head>
<link rel="stylesheet" href="/my/sassy/styles.css" />
</head>
<body>
<div class="you-spin-me-right-round">Please wait</div>
<script src="/my/phat/app.js"></script>
</body>
</html>
+ SEO-friendly
+ Progressive enhancement
- Separation of concerns?
- Tied to Node for your web tier
- What about enabling only certain parts of the app?
PJAX/Turbolinks - use AJAX to fetch only the HTML that's changed from the server.
Pages feel snappy like a single page app but you have server-side benefits intact.
Some further reading:
By Ben Paddock
What is Isomorphic JavaScript, how does it work and is it worth doing?