setTimeout as a Service

Specify the amount of time (defaults to milliseconds) you want the server to sleep before responding.
Supports HTTP requests with the time being the path
You can also send format modifiers like ?json, ?css, ?callback=test, ?js, ?int, ?gif.

Use Cases

You can use this to see if certain parts of your app are blocking.
Adding a css timeout to a style tag can show you if a stylesheet could block your site from loading. Same thing with the a js
timeout as the src in script tag. The json option can be used with AJAX calls to test your render methods to see how they load.


HTTP Examples would sleep for 5000 milliseconds would sleep for 10 seconds and return css would sleep for 1 hour and 5 seconds



By @jameshartig