51

I'm currently remote-debugging a website on my iPhone using Safari v8 and need to simulate different network speeds.

The Chrome Developer Tools have the functionality to throttle the network connection (simulate 3G, wifi etc.) or even to completely switch it off.

Does the Safari Web Inspector have similar functionality?

At the moment I'm getting around it by just switching off my wifi as I just need to test no network for now, but might need the functionality in the future.

Matt
  • 3,820
  • 16
  • 50
  • 73
  • I tried using this library to enable Chrome dev tool debugging for iOS devices https://github.com/google/ios-webkit-debug-proxy. Everything works...except for the network throttling. – Matt Nov 19 '15 at 08:33

4 Answers4

24

There is currently not a way to do that natively in Safari but you might try using something like Charles Proxy that can throttle your browser or system connection (win, mac, linux).

Mac version of Charles proxy throttle settings

Mike Grace
  • 16,636
  • 8
  • 59
  • 79
11

Update for 2023 and later

Other answers are no longer up to date and don't work anymore. Today you need to use an add-on from Apple called Network Link Conditioner.

You can download it with additional tools for xCode.

Network Link Conditioner by

SaroGFX
  • 699
  • 6
  • 20
7

Just found a way to do it without having to use a proxy like Charles:

  1. Install XCode
  2. Connect iPhone to mac via USB
  3. Launch XCode
  4. Access developer settings on iPhone
  5. Use "Network Link Conditioner"

Longer blog post I wrote: Enable network throttling on iPhone in 5 steps

Hope this helps!

KyleMit
  • 30,350
  • 66
  • 462
  • 664
vvo
  • 2,653
  • 23
  • 30
0

As of safari Version 16.6 In dev tools settings under the Experimental tab there is a checkbox "Allow throttling" in the Network section. enter image description here Once you've reloaded the dev tools there will be a dropdown to the right of "Disable Caches" where you can select the network throttle. enter image description here

Roberto Murguia
  • 357
  • 1
  • 2
  • 13