share
WebmastersHow can I simulate a slow connection for page load?
[+78] [12] Macha
[2010-07-14 23:12:13]
[ performance page-speed ]
[ https://webmasters.stackexchange.com/questions/861/how-can-i-simulate-a-slow-connection-for-page-load ]

I have a fast server, and a reasonably fast home Internet connection. How can I simulate my page loading on a slow connection?

(9) How about running BitTorrent at the same time :¬) - pelms
@pelms With mine it doesn't help, It can't make it slow enough... - Meki
(2) Or try running the connection via the Tor Project proxies.. - pelms
(1) @pelms both your comment suggestions should be combined into an answer. I think they fall into the "quick and dirty" solutions that, well, everyone likes :-) - Mario Awad
[+26] [2014-12-10 20:45:02] Rafael Eyng

In Chrome, you can open the developer tools, click in the device icon (1), and then select the connection throttling (2).

enter image description here

Edit (2015-11-03)

Since around Chrome 45, it actually got a little bit easier: you don't have to be in device mode anymore.

enter image description here


(1) The most practical answer. Doesn't require installation of additional software. - MisterMetaphor
Does not seem to throttle websocket traffic - user74292
Best solution, why is this not selected as answer? - Raymond
1
[+25] [2010-07-14 23:18:45] Adam [ACCEPTED]

FireFox Throttle [1] is a FireFox extension that should do it. Sloppy [2] is a proxy which slows down your connection so it should work across browsers.

Source [3]

MODERATOR EDIT 2013-02-02

This extension is no longer available but a repo has been created on Github [4].

[1] https://support.mozilla.org/en-US/questions/755876
[2] http://www.dallaway.com/sloppy/
[3] http://www.devcurry.com/2010/07/simulate-slow-internet-connections.html
[4] https://github.com/hkirsman/Firefox-Throttle

(5) It appears the Firefox Throttle extension is no longer available. - Mark Stosberg
Too bad Sloppy does not work with https: groups.google.com/forum/#!topic/sloppy-discuss/tOyCx7igfkw - Jess
2
[+23] [2010-07-15 00:11:02] Chris W. Rea

Fiddler Web Debugger [1] is an excellent HTTP proxy debugging tool for Windows that includes a modem speed simulation feature (Main menu > Rules > Performance > simulate modem speed).
Fiddler is freeware.

I also like Charles Web Debugging Proxy [2], a similar tool. Charles can also throttle the connection speed. Charles is commercial software, but has a free trial available. What I like most about Charles is that it is cross-platform: Being Java-based, it can run on Windows, Mac OS X, and Linux. (You didn't mention which platform you're on, but it's probably one of those :-)

[1] http://www.fiddler2.com/fiddler2/
[2] http://www.charlesproxy.com/

3
[+20] [2010-07-15 04:15:42] Ben Hoffman

Try out http://www.webpagetest.org/test. You can run a test from any of their remote servers around the world and see how fast you page loads from those location. It will even let you use a dial-up speed or other slow speeds for most locations.


4
[+11] [2012-09-12 09:14:35] biesiad

You can slow down specific resources with Deelay.me [1]:

<img src="http://deelay.me/1000?http://example.com/image.gif">

Deelay.me [2] is a delay proxy for web resources. You can use it with your images/stylesheets/scripts, to increase their load time.

[1] http://deelay.me/
[2] http://deelay.me/

It's good to know such website, but OP wants to slow down the whole page, not only assets. - j0k
5
[+3] [2013-09-10 09:12:34] man

I assume the issue is the same one i have. When developing a web project internally, working on LAN servers, or VM, sometimes you need to simulate a real live scenario, as if the server load were high, in order to see how fast the page loads on the client side, and if some data that comes from the server, actually loads and doesn't mess up your client-sided functions, due to server behavior and delays. Since there is no perfect way of simulating real-case scenarios, the best thing is to make sure, that you fire events, only after the data has been completely retrieved from the server. Using the $.ajax complete function and async:false seems to do the trick so far. This ensures that whatever data-based event you need to fire, will not be executed unless the data exists.


6
[+3] [2018-01-07 18:44:43] Arbaz Alam

Simulate Slow Connection using Chrome Go ahead and install Chrome if you don’t already have it installed on your system. Once you do, open a new tab and then press CTRL + SHIFT + I to open the developer tools window or click on the hamburger icon, then More tools and then Developer tools.

enter image description here

This will bring up the Developer Tools window, which will probably be docked on the right side of the screen. I prefer it docked at the bottom of the screen, since you can see more data. To do this, click on the three vertical dots and then click on the middle dock position.

enter image description here

Now go ahead and click on the Network tab. On the right, you should see a label called No Throttling.

enter image description here

If you click on that, you’ll get a dropdown list of a pre-configured speeds that you can use to simulate a slow connection.

enter image description here

The choices range from Offline to WiFi and the numbers are shown as Latency, Download, Upload. The slowest is GPRS followed by Regular 2G, then Good 2G, then Regular 3G, Good 3G, Regular 4G, DSL and then WiFi. Pick one of the options and then reload the page you are on or type in another URL in the address bar. Just make sure you are in the same tab where the developer tools are being displayed. The throttling only works for the tab you have it enabled for.

If you want to use your own specific values, you can click the Add button under Custom. Click on the Add Custom Profile button to add a new profile.

enter image description here

When using GPRS, it took www.google.com a whopping 16 seconds to load! Overall, this is a great tool that is built right into Chrome that you can use for testing your website load time on slower connections. If you have any questions, feel free to comment. Enjoy!


7
[+2] [2013-02-19 09:51:32] matinfo

You can emulate various net speeds on a Mac using an free application called Speedlimit [1]

Speedlimit Description:

SpeedLimit is a Leopard preference pane for limiting your network bandwidth to one of a couple different speeds — 768k DSL, Edge, 3G, and Dialup. This is really handy for testing your iPhone app under normal Edge network conditions in the iPhone Simulator.

[1] https://github.com/mschrag/speedlimit

8
[+1] [2010-07-15 04:34:30] Cebjyre

A quick & dirty solution is to upload a large file to try to choke your outbound bandwidth, this should slow down your inbound connection, and is usually easier than trying to similarly choke inbound bandwidth.


9
[+1] [2015-11-03 19:49:15] Simon Hayter

Router Method (QoS)

One of the easiest methods is actually by simply login into your router dashboard and tweaking the QoS [1] advanced settings. However... old, ISP provided or cheaper routers generally do not have the advanced QoS features which will allow you to throttle the bandwidth.

If you are among the majority of users with a cheaper or ISP provided router then you may be fortunate enough to have a router that is supported by open source projects whcih will unleash the full potential of your router, not only unlocking full QoS features but many advanced features only found in high end Cisco routers.

Some open source router firmware projects include:

[1] https://en.wikipedia.org/wiki/Quality_of_service
[2] http://www.dd-wrt.com/site/support/router-database
[3] https://wiki.openwrt.org/toh/start
[4] https://sourceforge.net/projects/hyperwrt/
[5] http://www.polarcloud.com/tofu
[6] http://www.polarcloud.com/tomato
[7] http://tomatousb.org/doc:build-types
[8] http://www.zeroshell.org/hw/
[9] http://dev.debwrt.net/wiki/TableOfSupportedHardware
[10] https://librecmc.org/librecmc/wiki?name=Supported_Hardware
[11] https://www.gargoyle-router.com/
[12] http://tarifa.sourceforge.net
[13] https://commotionwireless.net/docs/supported-devices/

10
[+1] [2018-01-09 09:14:13] Setyo N

You could simulate a slow connection on a local web server at localhost by using node.js [1] and browser-sync [2].

  1. Install node.js
  2. Run this command from node.js command prompt: npm install -g browser-sync

  3. Run this command from node.js command prompt: browser-sync start --server

    enter image description here

  4. From web browser, open http://localhost:3001/, then click "Network Throttle" link to create a server with the selected speed and port:

    enter image description here

[1] https://nodejs.org/en/
[2] https://browsersync.io/

11
[0] [2013-09-02 08:06:20] user1565578

Use a mobile phone to connect instead of fast home connection. Open multiple browser tabs with video streaming to further slow down the connection.


12