Safari Web Inspector network throttling

2020-08-09 05:42发布

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.

2条回答
▲ chillily
2楼-- · 2020-08-09 05:57

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!

查看更多
放荡不羁爱自由
3楼-- · 2020-08-09 06:06

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

查看更多
登录 后发表回答