Is it possible to somehow mimic the slower download speeds of my website, as if it is hosted on a web server, but from my localhost?

It's hard to test things like Ajax loading icons when the content loads so quick from your local machine so I think this could help me out a lot?

I was wondering if there was a tool that you could use for this or if you'd need to use javascript to add setTimeout or setInterval code?

Accepted Answer

If you are using Windows, then download the Fiddler tool Fiddler.

This will setup a HTTP proxy that you can use for testing HTTP headers and view all the HTTP traffic within the PC and browser. You can then use the Rules > Performance > Simulate Modem Speeds option to slow the browser's HTTP connection.

There is also a Fiddler Switch plug-in for Firefox available to toggle the Fiddler proxy.

Written by Luke
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki