Safari Web Inspector network throttling

2020-08-09 05:35发布

问题:

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.

回答1:

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).



回答2:

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"

done!

Longer blog post I wrote: https://dev.to/vvo/enable-network-throttling-on-iphone-applications-in-5-steps-ikf

Hope this helps!