Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.38 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.38 KB

The Tramp

Chaplin.js on Node.js. Use it for performance boosts, SEO, re-usability.

Project Status: Alpha

Build Status

It is currently being tested in a Chaplin app. The following work:

  • Controllers
  • Models (including validation w/ Backbone.validation)
  • Views, Sub-views, CollectionViews and Composition Views
  • Handlebars templates, partials, and helpers
  • Chaplin routes integrated into Express' router

Need to implement:

  • Require/AMD support

Why render on server-side?

A typical single page app will render after the following requests (in descending order) are made:

requests

The problem is the last request can become very large over time, especially as back-ends scale. This can result in up to or even more than one second of delay.

By rendering the initial page on the server-side, this can greatly reduce the initial page loading time, as the last call made in the previous diagram is now done on the server-side before the site loads.

fewer requests

How it works

An express app is created on Node and then The Tramp is required. It's designed to be a drop in plugin.

Example