Introduction
Disabling JavaScript in Chrome can be useful for various reasons, such as increasing page load speed, enhancing privacy, or testing web development projects. This guide provides step-by-step instructions on how to disable JavaScript globally, per-site, and through Chrome DevTools across different platforms, including Windows, macOS, Linux, Android, and iOS. Additionally, we’ll cover how to re-enable JavaScript when needed.
Disable JavaScript Globally in Chrome
Windows, macOS, and Linux
- Open Chrome.
- Click on the three-dot menu in the upper-right corner and select Settings.
- Navigate to Privacy and security > Site settings.
- Under Content, click on JavaScript.
- Select Don’t allow sites to use JavaScript.
You can also type chrome://settings/content/javascript in the address bar to open JavaScript settings directly.
Android
- Open the Chrome app on your Android device.
- Tap the three-dot menu and select Settings.
- Under Advanced, go to Site settings > JavaScript.
- Toggle the switch to Off.
iOS
Chrome for iOS has no JavaScript setting. Its Content Settings only cover pop-ups, default apps and the default site view (Google’s iPhone help).
Disable JavaScript Per-Site
Windows, macOS, and Linux
- Open Chrome and visit the website you want to block JavaScript on.
- Click the View site information icon to the left of the web address.
- Select Site settings.
- Under JavaScript, choose Block.
Android
- Visit the website in Chrome.
- Tap View site information to the left of the address bar, then Permissions.
- Tap JavaScript, if it is listed, and turn it off for this site.
Disable JavaScript Using Chrome DevTools
For developers who need to test their sites with JavaScript disabled, Chrome DevTools provides an easy solution.
- Press Ctrl + Shift + I (Windows/Linux) or Cmd + Option + I (Mac) to open DevTools.
- Go to the Command Menu by pressing Ctrl + Shift + P (Windows/Linux) or Cmd + Shift + P (Mac).
- Type javascript, select Disable JavaScript and press Enter.
JavaScript stays off in that tab only while DevTools is open. To turn it back on, run Enable JavaScript from the Command Menu (Chrome DevTools docs).
Why Disable JavaScript?
- Privacy and security: Disabling JavaScript can help protect against certain types of online tracking and vulnerabilities.
- Performance: Reducing the amount of JavaScript executed can significantly speed up browsing on some sites.
- Development: Developers may need to test how their site behaves without JavaScript.
Re-enable JavaScript in Chrome
To revert changes and turn JavaScript back on, follow the same steps as above and select Sites can use JavaScript in the global settings or Allow in per-site settings.
Conclusion
Disabling JavaScript in Chrome is a straightforward process, whether you’re doing it globally, per-site, or for development testing. While turning off JavaScript can enhance privacy and speed, it may also limit functionality on certain websites. Remember to re-enable JavaScript when needed to ensure full access to web features. For further assistance, refer to Google Chrome Help.