Safari Web Inspector network throttling

99封情书 提交于 2020-06-25 07:23:19

问题


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!



来源:https://stackoverflow.com/questions/28669674/safari-web-inspector-network-throttling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!