Generate delayed CSS- and JavaScript-files for testing webpage performance
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
public
routes
test
views
Procfile
README.md
app.js
package.json

README.md

HTTP Response Generator

Generate dummy webpage resources like CSS, javascript and images for testing webpage performance patterns.

Development

Start on port 5000:

npm start

Run mocha tests:

npm test

Lint (JSCS, JsHint):

npm run lint

Install on Heroku

heroku login
heroku create
git push heroku master
heroku open
heroku logs --tail

Usage

CSS

/css/<delay>?/<size>?/<name>.css

<delay>: response time in seconds

<size>: size of document in kilo-bytes

<name>: name for the resource to identify easily in the developer-tools network waterfall

Javascript

/javascript/<delay>?/<size>?/<time>?/<name>.js

<delay>: response time in seconds

<size>: size of document in kilo-bytes

<time>: runtime of the script when running in the browser in seconds

<name>: name for the resource to identify easily in the developer-tools network waterfall

PNG Image

/image/<delay>?/<width>?/<height>?/<color>.png

<delay>: response time in seconds

<width>: width of the image in pixel

<height>: height of the image in pixel

<color>: color of the image in hex-code (without #)

QR-code Image

/qr/<delay>?/<content|request-header>.png

<delay>: response time in seconds

<content>: content of the QR-code

<request-header>: request header as content of the QR-code (for example: referer)

Timeout for simulating a single point of failure (SPOF)

/spof

JSON

Return clients IP address.

/json/<delay>?/<size>?/<name>.json

<delay>: response time in seconds

<size>: size of document in kilo-bytes

<name>: name for the resource to identify easily in the developer-tools network waterfall