Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/injms/yaled
- Owner: injms
- Created: 2017-10-26T09:50:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T04:03:47.000Z (8 months ago)
- Last Synced: 2024-10-07T23:20:12.434Z (about 1 month ago)
- Language: JavaScript
- Size: 40 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
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
```Or the loading of scripts:
```html
````
## To do
- Package for NPM
- Global install?
- ??