This article explains how to disable JavaScript in the Safari web browser for macOS and iOS operating systems if you don't want to use it for security reasons.
How to Enable Javascript on iPhone (Quick & Easy)
JavaScript adds dynamic behavior to websites, improving them and providing a more friendly experience for viewers. However, because JavaScript is a powerful programming language, people can also use it to write malware, making it unwelcome to many computer users.
In Safari on Mac, you can turn JavaScript on and off in the Preferences menu. Here's how:
Open the Safari menu and select Preferences.