Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/injms/yaled

A delay proxy that's useful for breaking things.
https://github.com/injms/yaled

Last synced: 19 days ago
JSON representation

A delay proxy that's useful for breaking things.

Awesome Lists containing this project

README

        

# Yaled
It's delay backwards.

Totally inspired by [Deelay.me](http://www.deelay.me) and [Atwood's Law](https://blog.codinghorror.com/the-principle-of-least-power).

This is a delay proxy, allowing you to test what happens when one or more assets load slowly. Useful for breaking things.

## Install
Requires Node (tested on v8.6.0) and Yarn (tested on 1.2.1).

Clone the repo, then `yarn install` to get the dependencies.

Then it's `node server.js` to run.

## Use
Change a resource's URI to be proxied by Yaled:

```html
http://your-domain:3000/{integer: 20}/{url: http://mysite.com/image.gif}`
```

The {integer} is the time delay you want in seconds - maximum of 20 by default. (You can change this is `config.json`)

The {url} is the full resource you want to delay loading.

For example, delaying the loading of an image by 10 seconds:

```html
Polar bear
```

Or the loading of scripts:

```html
`

```

## To do
- Package for NPM
- Global install?
- ??