Why you might want to disable JavaScript
JavaScript is code that runs inside your browser while you visit a website. It powers interactive features — dropdown menus, live search results, video players, forms that check your input before you submit. Disabling it means those features stop working, but the page's text and images usually load fine.
People disable JavaScript for a few concrete reasons. Some do it to block tracking scripts that follow you across websites. Others want to see what a page looks like without ads and pop-ups, which often run on JavaScript. A few disable it as a security measure when visiting untrusted sites, though modern browsers sandbox JavaScript so thoroughly that this is less necessary than it once was. Web developers sometimes disable it to test whether their site works for people with older browsers or accessibility tools that don't run JavaScript.
The tradeoff is real: many modern websites simply won't work without JavaScript. Your email won't load, search results won't appear, checkout pages won't function. For that reason, most people who disable JavaScript do it selectively — turning it off for specific sites or using browser extensions that let them toggle it per page.
Key Takeaways
- You can disable JavaScript entirely in your browser settings, but this breaks most modern websites and is rarely the right choice.
- Browser extensions like uBlock Origin and NoScript let you block JavaScript from specific sources without disabling it everywhere.
- Disabling JavaScript stops tracking scripts and some ads, but also stops interactive features like search, video players, and forms.
- The fastest approach for most people is to use an extension that blocks ads and trackers rather than disabling JavaScript itself.
Disable JavaScript in Chrome
Chrome does not offer a built-in toggle to disable JavaScript globally. Google removed this option years ago because so few sites work without it. If you need to block JavaScript on specific sites, use an extension instead — see the section on browser extensions below.
If you absolutely must disable JavaScript in Chrome, you can do it through Developer Tools, but this only affects the current tab and resets when you close it. Open any page, press Ctrl+Shift+J on Windows or Cmd+Option+J on Mac to open the Console. This is not a practical everyday solution, which is why most Chrome users who want selective blocking turn to extensions instead.
Disable JavaScript in Firefox
Firefox still offers a direct way to disable JavaScript. Type about:config in the address bar and press Enter. You will see a warning; click "Accept the Risk and Continue." In the search box at the top, type javascript.enabled. You will see one result. Click the toggle button on the right to switch it from true (JavaScript on) to false (JavaScript off).
This disables JavaScript across all websites in Firefox. To turn it back on, return to the same setting and toggle it back to true. Be aware that most websites will not work properly with this setting off. Many will show blank pages or error messages. If you want to disable JavaScript only on certain sites, use a Firefox extension like uBlock Origin or NoScript instead, which gives you much finer control without breaking every site you visit.
Disable JavaScript in Safari
Safari does not have a built-in setting to disable JavaScript. Apple removed this feature in recent versions because it breaks so many websites. If you want to block JavaScript from specific sources — like ad networks or tracking services — use a content blocker extension from the App Store, such as 1Blocker or Wipr.
These extensions let you block scripts and trackers without disabling JavaScript entirely, which keeps websites functional while reducing tracking and ads. This selective approach works better than a global toggle because it preserves the interactive features you need while still reducing unwanted code.
Disable JavaScript in Edge
Microsoft Edge does not offer a global JavaScript toggle in settings. Like Chrome, Edge removed this option because modern websites depend on JavaScript. To block JavaScript selectively, install an extension like uBlock Origin or NoScript from the Microsoft Edge Add-ons store.
These extensions give you control over which scripts run on which sites, without the downside of breaking every website you visit. You can allow JavaScript on sites you trust and block it on others, or block specific script sources while allowing the rest.
Use browser extensions to block JavaScript selectively
uBlock Origin is a free, open-source extension for Chrome, Firefox, Edge, and Safari. It blocks ads, trackers, and malware scripts by default. You can also use its advanced mode to block all JavaScript from specific domains while allowing it on others. Install it from your browser's extension store, click the icon in your toolbar, and you will see a list of scripts and trackers on the current page. Click the power icon to toggle blocking on or off for that site.
NoScript is a Firefox extension that blocks all JavaScript by default and lets you whitelist sites you trust. When you visit a page, you see a list of scripts trying to run. Click the ones you want to allow, and NoScript remembers your choice for that site next time. This gives you fine-grained control but requires more active management than uBlock Origin.
ScriptSafe works similarly to NoScript in Chrome and Edge. It blocks scripts by default and shows you what is trying to run on each page. You can allow scripts from specific domains or block them permanently.
For most people, uBlock Origin strikes the right balance: it blocks ads and trackers automatically without requiring you to manage a whitelist for every site you visit.
What breaks when you disable JavaScript
Disabling JavaScript globally will break most modern websites. Email services like Gmail will not load. Search engines will not return results. Video players will not work. Online maps will be frozen. Shopping carts will not function. Forms that validate your input before submission will fail. Real-time chat and notifications will stop.
Some older or very simple websites — news archives, documentation pages, static blogs — may still work fine without JavaScript. But the majority of the web depends on it. This is why disabling JavaScript entirely is rarely practical. Selective blocking through extensions is a better approach if you want to reduce tracking or ads without breaking functionality.
Frequently Asked Questions
Does disabling JavaScript make me safer?
Modern browsers run JavaScript in a sandbox that prevents it from accessing your files or other sites' data. Disabling JavaScript stops some malware vectors, but it is not a primary security tool. Using a password manager, keeping your browser updated, and avoiding suspicious links matter far more. If security is your goal, use an extension like uBlock Origin instead, which blocks malicious scripts while keeping websites functional.
Will disabling JavaScript stop ads?
Many ads run on JavaScript, so disabling it will stop them. However, some ads are embedded directly in the page's HTML and will still appear. For better ad blocking, use uBlock Origin or a similar extension, which blocks ads more reliably than disabling JavaScript.
Can I disable JavaScript for one website but not others?
Yes, and this is the practical approach. Use an extension like uBlock Origin, NoScript, or ScriptSafe. These let you toggle JavaScript on or off per site, or block specific scripts while allowing others. This way you get the benefits of blocking without breaking sites that need JavaScript to function.
What if a website says I need to enable JavaScript?
If you have disabled JavaScript globally and a site will not load, you will need to turn it back on. If you are using an extension, click the extension icon and allow scripts from that site. If the site still does not work, it may require JavaScript to function at all, and there is no workaround.
Does disabling JavaScript affect my internet speed?
Slightly. JavaScript takes time to download and run, so disabling it means less data to process. However, the difference is usually small — a few hundred milliseconds at most. If you want faster browsing, blocking ads and trackers with an extension like uBlock Origin will have a more noticeable effect than disabling JavaScript.