Skip to content

Sample Express-based server app that demonstrates progressive rendering with Marko

Notifications You must be signed in to change notification settings

marko-js-samples/marko-progressive-rendering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async Fragments Demo using Marko

To run locally:

npm install
node server.js

You can also check out the live demo of this app on Heroku: https://marko-progressive-rendering.herokuapp.com/

Progressive HTML rendering is a technique that improves the performance of websites that involves sending an HTTP response for an HTML page in multiple chunks. This improves both the actual load time, as well as the perceived load time. In this demo Node.js app we apply this technique using Marko Templates (an asynchronous and streaming templating engine) and Node.js. In addition, we illustrate an advanced technique of flushing HTML chunks out-of-order and using JavaScript on the client-side to move fragments into the proper order in the DOM.

Learn more about Marko on GitHub: github.com/raptorjs/marko

More reading: StrongLoop Blog: Bypassing Express View Rendering for Speed and Modularity

About

Sample Express-based server app that demonstrates progressive rendering with Marko

Resources

Stars

Watchers

Forks

Packages

No packages published