App & Browser Testing Made Easy

Give your users a seamless experience by testing on 3000+ real devices and browsers. Don't compromise with emulators and simulators

Home Guide How to perform Network Throttling in Safari?

How to perform Network Throttling in Safari?

By Sanghita Ganguly, Community Contributor -

Network Throttling is a method that most developers use intentionally to slow down the speed of the internet on web browsers like Safari. It’s also known as network condition emulation, which checks the browser performance in different bandwidths like 2G, 3G, 4G, etc. However, know that simulator/emulator vs real devices testing differ in accuracy regarding real-world usage. 

This guide will cover everything about network throttling and three useful methods to perform network throttling in Safari and test the performance of poor network conditions on real device-browser combinations. 

What is Network Throttling and its Benefits?

Network Throttling is a technique software developers use to test the web performance on different network conditions/bandwidths, including 2G, 3G, 4G, Edge, and WiFi. This method helps to throttle your browser and conduct an initial bit of performance testing 

Also, if you’re a true blue thorough tester and you’re testing websites from different countries, network throttling should be on the top of your list. 

Here’s how network throttling with BrowserStack App Live benefits and enhances the realtime web experience in stable/unstable/ low networks bandwidths:  

  • Check bandwidth consumption during runtime and inactivity. 
  • Monitor upload and download speeds. 
  • Achieve maximum efficiency by identifying and eliminating bandwidth bottlenecks. 
  • Profile web app performance and behavior over varying network conditions like poor connectivity and fluctuating or throttled network.

Here are three main methods for Throttling network in Safari:

Method 1: Using Network Link Conditioner in iOS Device

Here’s the step-by-step process to perform network throttling in Safari for testing purposes:

Step 1 – Open Mac App Store and install “XCode”

Open Mac App Store and install XCode

  • First, open the Mac App Store on your Mac.
  • Search for “XCode” and install it on your Mac. 

Step 2 – Connect your iPhone to your Mac

  • Use a USB cable to connect your iPhone to your Mac. 
  • Click (confirm/yes) for any requests on your Mac or iPhone. 

Step 3 – Open XCode

Once the XCode is installed successfully, launch the application. 

Step 4 – Go to Developer Settings

Developer Settings

  • Now, go to your iPhone setting. You’ll find a new option, “Developer” in your iPhone’s settings.

If you cannot see this option, try to rerun the XCode in Mac and reconnect your iPhone with Mac to search for the option in your iPhone setting. 

Step 5 – Turn on “Network Link Conditioner” on iPhone

Network Link Conditioner

  • Then, click on the “Developer” option and scroll down below. 
  • You’ll see an option “Network Link Conditioner,” which you will have to turn on. 
  • Now you’ve different bandwidth options to throttle your internet connection on Safari.

Note: Don’t forget to turn off the “Network Link Conditioner” after the testing is done.

Method 2: Using Network Link Conditioner in MacOS

According to Apple’s official website, network simulation can be done for testing by “Network Link Conditioner.”

Here’s the step-by-step process to install and use Network Link Conditioner in Mac:

Step 1 – Download the “XCode” Package on your Mac

To download and install XCode on your Mac, you’ve two options:

  1. First, you can download XCode via Mac App Store (latest version)
  2. Or, you can go to Apple’s Developer Site to download any specific version of the XCode Package.

Step 2 – Install “Additional Tools for XCode”

  • Once you’ve installed XCode as per your suitability, go to XCode on your Mac, click “Open Developer Tool,” and select “More Developer Tool.”
  • Now, search for “Additional Tools for XCode.” (You need to download the version as per your XCode version)

Step 3 – Use “Network Link Conditioner” 

  • Once you’ve downloaded the “Additional Tools for XCode, open the DMG file and go to the Hardware directory. 
  • You’ll see an icon of “Network Link Conditioner.prefPane” that you need to install by double-clicking.

Step 4 – Use Safari Throttle Network (MacOS)

Now, you’ve different bandwidth options:

  • 100% Loss
  • 2G
  • 3G
  • DSL
  • Edge
  • 4G

Developers can conduct Safari throttle network by using Network Link Conditioner on Mac.

Method 3: Network Throttling on BrowserStack (Real iOS Device)

The most accurate way for developers to use network throttling and test performance in different bandwidths in mobile browsers is through BrowserStack. Similar to how developers would conduct network throttling in Chrome seamlessly, we can follow a similar approach while throttling network speeds on iOS Safari.

BrowserStack Real Device Cloud is the industry-leading infrastructure for developers to test network performance on different bandwidths to achieve maximum efficiency by identifying and eliminating connectivity bottlenecks. 

  1. Sign Up for free for BrowserStack Live. Once you Sign up /Login, you can access the Live Dashboard. BrowserStack Live
  2. Select an iOS Device to start running web apps on Safari by simulating Network.
  3. Select Throttle Network Option and test on different Internet speeds.  iPhone 13 with iOS v15 Selected
  4. You can select from different options to Simulate Internet Connection such as 2G, Edge, 3G, 4G, 4G – high latency, Custom value options Throttle Network on Safari

With BrowserStack, developers can efficiently conduct network throttling because of its user-friendly interface, fast response, and Safari throttle network options to test performance under real user conditions.

Realtime Network Tracking

You can also enable network tracking that uses proxy to monitor HTTP(S) request and response in realtime.

Monitor HTTPS request and response in realtime

Conclusion

An accurate way of validating how web pages load in poor network connections is to test them on real browsers installed on real devices. BrowserStack’s real device cloud enables developers and QAs to test their websites in real user conditions, including different internet bandwidths. 

Testers and teams can access: 

  • Multiple browser versions of Chrome, Safari, Opera, Edge etc.
  • DevTools for Chrome and Safari for accurate web elements inspection
  • Latest and legacy versions of real Android smartphones from vendors like Google Pixel, Samsung, OnePlus, Motorola, etc.
  • Latest and legacy versions of real Apple devices like iPhone 14, iPhone 13, iPhone 12 Mini, iPhone 11, iPad, iPhone 6, etc.

Sign Up for Network Throttling

Tags
Cross browser testing Mobile App Testing

Featured Articles

How to Debug Websites on iPhone Safari

What is Test Infrastructure?

Curated for all your Testing Needs

Actionable Insights, Tips, & Tutorials delivered in your Inbox
By subscribing , you agree to our Privacy Policy.
thank you illustration

Thank you for Subscribing!

Expect a curated list of guides shortly.