/progressive-loading

Progressive Loading example app

Primary LanguageJavaScriptMIT LicenseMIT

StealJS Progressive Loading

Go to StealJS.com for step-by-step instructions to create this app from scratch.

Instructions

Prerequities: Ensure Node.js along with NPM are properly installed. You will also need a webserver. If you don't have one, you can install this simple command-line http-server.

Clone

Clone the repo to your local machine.

> git clone https://github.com/stealjs/progressive-loading.git
Install

Install Node modules and Bower components

> cd progressive-loading
> npm install
Build

Run this script from within your node_modules folder to have steal-tools analyze the page and create progressive loading bundles.

> ./node_modules/steal-tools/bin/steal
Serve

Spin up your webserver or run http-server

> http-server

Open http://localhost:8080/site/site.html in browser.

Open the Network panel in Developer Tools and click the signup and login links. Steal-tools builds a graph of the required files, minifies and concatenates then into progressively loaded bundles.