Skip to content

How to Allow or Block JavaScript in Safari Computer

JavaScript help in making websites interactive and modern. But it can also be misused for hacking and phishing. Hence it is recommended to block JS when visiting unsecured websites. Safari on Mac computers has JS enabled. However, we can disable it using a checkbox on the Safari preferences window.

Configure JavaScript Execution on Safari browser

JavaScripts are a set of codes on a website that help to enhance the website. Moreover, it is the universal programming language of the web. JavaScript is used by 95.2% of all websites, according to W3Techs. Interesting.

JavaScripts may be potent to vulnerability and malware (rare) since they help load some formats of Ads, and JS consumes a good amount of CPU and RAM. It hence, makes your browser work slowly.

The reason was that websites used JavaScript, which consumed all the RAM and subsequently crashed. Blocking them can surely make your browsing better.

Though it is not recommended, it may block some of the elements on the site, which can regrade your browsing experience.

Block JavaScript

We must have a smooth and fast experience while browsing websites. The unexpected crashing of websites is irritating and also tiresome.

Here are the steps to block the JavaScript:

  1. Launch the Safari browser app on a Mac computer.
  2. Select Safari from the menubar options.
  3. Choose the Preferences… option under the Safari menu.
  4. Switch to the Security tab within the Preferences popup window.
  5. Disable the Checkbox against Enable JavaScript.
    Disable and Block JavaScript on Safari MacOS

This will block the JavaScript execution for all the websites on Safari browsers on a Mac computer.

Allow JavaScript

There are a few websites that use JavaScript to give out essential information. While browsing them, we should know how to allow JavaScript execution for such websites. Here are the steps to allow JavaScript:

  1. Launch the Safari app on a Mac computer.
  2. Select Safari from the menubar options.
  3. Choose the Preferences… option under the Safari menu.
  4. Switch to the Security tab within the Preferences popup window.
  5. Enable the Checkbox to Enable JavaScript.
    Enable and Allow JavaScript on Safari MacOS

This will allow the browser to run the JavaScript code on the websites over the Safari browser on any Mac machine.

Bottom Line

Sometimes websites may crash due to excessive load on the server or simply because Javascript used by the website has taken up all the capacity of your RAM. This certainly makes browsing inconvenient and time-consuming. To avoid it all, we should know the use of the Safari block javascript feature.

Similarly, you can also allow or block JavaScript on Safari iPhone. You might perhaps face some issues after blocking JavaScript. Hence, it suggested blocking JS on selected sites.

I hope this article was of some help to you in one way or the other. This primarily aimed to make the browsing experience easier for you.

Lastly, if you've any thoughts or feedback on How to Allow or Block JavaScript in Safari Computer, then feel free to drop in below comment box. You can also report the outdated information.

Please share the article if you find it helpful:

Disclosure: This page may contain affiliate links, which means we may receive compensation for your purchases using our links; of course at no extra cost to you (indeed, you may get special discounts).
nv-author-image

Kushal Azza

Kushal is a Bachelor of Engineering and his passion for technology and gadgets has made him a digital & tech geek. He has over a decade of experience solving tech problems and creating digital solutions. Follow him on Twitter and LinkedIn.

Share us your thoughts and feedback

Your email address will not be published. Required fields are marked *