User Agents

Web browsers and everyday web tech, explained

How to Turn Off JavaScript on iPhone Safari

· 4 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Turning off JavaScript in Safari on your iPhone can speed up page loading, reduce data usage, and block certain intrusive scripts. It also disables most interactive elements, so many websites will look simpler or may not work correctly. This guide walks you through the exact steps and explains what to expect.

What You'll Need

  • An iPhone or iPod touch running iOS 12 or later (the steps are essentially the same on older versions).
  • The Settings app (preinstalled on every iPhone).

Step-by-Step

  1. Unlock your iPhone and go to the Settings app (the gear icon).
  2. Scroll down and tap Safari. It’s usually near the top of the third group of settings, but you can also use the search bar at the top of the Settings screen to find it faster.
  3. Scroll down to the Privacy & Security section. On older iOS versions, this section might be labeled just “Privacy” or “Security.”
  4. Look for the toggle labeled JavaScript. It’s directly below “Block Pop-ups” and above “Fraudulent Website Warning.”
  5. Tap the toggle to turn it off. The switch will turn from green to gray, and you’ll see a small confirmation pop-up explaining that turning off JavaScript can affect how websites display.
  6. Tap Turn Off to confirm. Safari will now load pages without executing JavaScript.

Common Mistakes

  • Turning off JavaScript for the entire device instead of just Safari. JavaScript is a browser setting, not a system-wide toggle. If you’re looking for a “JavaScript” option in the main Settings screen, you won’t find it—it’s only inside Safari’s settings.
  • Expecting immediate changes on already open tabs. Safari often keeps pages in memory. After turning off JavaScript, you may need to refresh the page (pull down or tap the refresh icon) to see the effect.
  • Confusing “Block Pop-ups” with JavaScript. They are separate toggles. Blocking pop-ups doesn’t disable JavaScript; it only prevents new windows from opening.
  • Forgetting that some sites will break. If a website relies heavily on JavaScript (like banking apps, social media, or online stores), it may appear blank or show an error. That’s expected, not a bug.

Tips

  • Use a content blocker instead. If you want to block specific scripts but keep most functionality, consider installing a content blocker from the App Store. They give you finer control than a global JavaScript off switch.
  • Turn it back on when you need full features. Many sites won’t work at all without JavaScript. If you hit a page that’s broken, just go back to Settings > Safari and toggle JavaScript back on temporarily.
  • Combine with “Block All Cookies” for extra privacy. While you’re in Safari settings, you can also block cookies. This further reduces tracking, but it may log you out of sites more often.
  • Test with a simple site first. After turning off JavaScript, open a basic website like Wikipedia to confirm the change works. Then try a more complex site to see the difference.

Troubleshooting

I turned off JavaScript, but pages still seem to run scripts.
Make sure you’re looking at the correct toggle. In some iOS versions, the setting is under “Advanced” at the bottom of Safari settings. If you don’t see “JavaScript” under “Privacy & Security,” scroll to the very bottom and tap “Advanced,” then look for “JavaScript” there.

Websites are completely blank or show a white screen.
This is normal for sites that rely on JavaScript to render content. Try refreshing the page first. If it’s still blank, the site likely can’t function without JavaScript. You can either turn JavaScript back on or use a different browser that allows per-site settings.

The toggle is grayed out and I can’t tap it.
This can happen if you have a profile or parental control restriction enabled. Check Settings > Screen Time > Content & Privacy Restrictions. If “JavaScript” is blocked there, you’ll need to enter your Screen Time passcode to change it.

I turned JavaScript off, but Safari is still slow.
JavaScript is only one factor. Slow loading can also be caused by a poor internet connection, heavy page content (images, videos), or too many open tabs. Try closing background tabs or restarting your iPhone.

Frequently Asked Questions

Will turning off JavaScript make my iPhone faster?

It can speed up page loading on script-heavy sites, but the difference is often small. The main benefit is reduced data usage and fewer distractions from dynamic elements.

Does turning off JavaScript affect all browsers on my iPhone?

No. The setting only affects Safari. If you use Chrome, Firefox, or another browser, they have their own settings (or may not offer a JavaScript toggle at all).

Can I turn off JavaScript for just one website?

Not with Safari’s built-in settings. You’d need a third-party content blocker that supports per-site rules, or use a different browser that offers site-specific settings.

Will I still be able to watch YouTube videos?

YouTube’s video player requires JavaScript. With JavaScript off, you’ll likely see a message saying the video can’t be played. You can still watch videos if you use the YouTube app instead of the website.

How do I turn JavaScript back on?

Go to Settings > Safari > Privacy & Security (or Advanced) and toggle JavaScript back to the green position. No confirmation is needed.

Is it safe to browse with JavaScript off?

Yes, turning off JavaScript can actually improve security because it blocks a common vector for malicious scripts. However, it doesn’t make you completely immune to all web threats, so still practice safe browsing.