Skip to content

Block or Enable JavaScript in Chrome on Android

JavaScript powers most modern websites, but it can also be misused on shady pages. Chrome on Android lets you block or enable scripts for every site at once, or carve out a per-site exception. The setting now lives under Privacy and security instead of the old standalone Site settings row.

The JavaScript optimization and security toggle controls whether Chrome's V8 engine uses its higher-level JIT compiler. That lever is useful when you are debugging script crashes or want a safer interpreter path.

Watch the Video Tutorial

In this guide, I have covered:

How to Block JavaScript for All Sites in Chrome on Android

Want to turn off JavaScript for every site you load? Chrome on Android runs scripts by default, but the toggle now lives under Privacy and security instead of the old standalone Site settings row.

Use this on a shared phone, while testing how a page behaves without scripts, or when you want a hard break from interactive content.

  1. Open the Chrome app on your Android phone.
  2. Tap the More vertical 3-dots icon menu in the top-right corner and pick Settings.
  3. Scroll to Privacy and security and tap it.
  4. Tap Site settings.
  5. Tap JavaScript under Content.
  6. Toggle Allowed off so the label changes to Blocked.

Chrome now refuses to run scripts on every page. Some sites will load as plain text, login flows will break, and embedded videos will not play. If a single site you trust stops working, add it back as an exception using the steps below.

How to Enable JavaScript in Chrome on Android

If a page is broken or you turned JavaScript off earlier and want it back, flip the same toggle the other way. The path is identical.

  1. Open Chrome on Android.
  2. Tap More vertical 3-dots icon, then Settings.
  3. Tap Privacy and security, then Site settings.
  4. Tap JavaScript.
  5. Toggle Blocked on so the label switches back to Allowed.

Reload the page. Interactive elements, dropdowns, and form validation should come back. If a specific site still misbehaves, check whether it sits in your block list and remove it from there.

Allow or Block JavaScript on a Specific Site in Chrome on Android

Need to keep JavaScript on for most sites but block it on a couple of bad actors? You can do that without a global switch. The exception list lives on the same JavaScript settings page, and entries behave opposite to the global toggle.

  1. Open Chrome on your phone.
  2. Tap More vertical 3-dots icon, then Settings.
  3. Tap Privacy and security, then Site settings.
  4. Tap JavaScript.
  5. Tap + Add site exception.
  6. Type the example.com URL you want to override.
  7. Tap Add.

If the global toggle is Allowed, anything in this list is blocked. If the global toggle is Blocked, anything in this list is allowed. To remove an entry, open it and tap Delete.

What the JavaScript Optimization & Security Setting Does

Wondering what the JavaScript optimization & security toggle does? Chrome 137 on Android added it as a Site setting next to the main JavaScript toggle. It lets you disable the higher-level optimizing tier of Chrome’s V8 engine, which can help if a page is exploiting a JIT bug or you want every script to run in the slower, more predictable interpreter.

Most users should leave it Allowed. Turn it Blocked only if you are debugging a specific script crash or want stricter JIT behavior.

note icon

Leave this setting Allowed unless you are tracking down a JavaScript crash. Blocking the optimizing compiler slows down every site that runs scripts.

The same Privacy and security hub is where you can tighten other Chrome privacy settings on Android, block a website outright in Chrome on Android, or manage cookie controls in Chrome on Android.

Frequently Asked Questions

Why is the JavaScript option missing from Chrome on Android?

Chrome 130 redesigned Settings on Android and grouped JavaScript under Privacy and security instead of leaving it as a top-level row. Open More vertical 3-dots icon then Settings then Privacy and security then Site settings then JavaScript, and it will be there.

Does blocking JavaScript protect me from scams?

It removes one of the more common attack surfaces on sketchy sites, but it does not block phishing, malicious downloads, or trackers on the server. Pair it with Chrome cookie controls on Android and Safe Browsing for a real defense.

How is JavaScript different from cookies?

JavaScript is code that runs inside the page to make it interactive. Cookies are small files the site stores on your phone. You can manage cookies separately under Privacy and security then Site settings then Third-party cookies.

Can I re-enable JavaScript after disabling it?

Yes. Go to Settings then Privacy and security then Site settings then JavaScript, and switch the toggle from Blocked back to Allowed. Reload the page to confirm.

What does the JavaScript optimization & security toggle do?

It tells Chrome’s V8 engine to stop running its higher-level optimizing JavaScript compiler. Pages still load and scripts still run, just slower. Leave it Allowed unless you are debugging a JIT-specific crash.

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; of course at no extra cost to you (indeed, you may get special discounts).
Kushal Azza

Kushal Azza

Kushal Azza is a Google Certified Analytics & IT Professional, Digital Content Creator, and Go-To Digital Marketer. He has over a decade of experience solving tech problems, troubleshooting, and innovating digital solutions. Follow him on Twitter and LinkedIn.

4 comments and feedback

  1. For what it is worth: is there ANY Android browser that offers a QUICK and simple Off/On toggle switch for Java scripts? Burying this function deep in the guts of the settings menu is counter-intuitive. That’s why many desktop browsers allow this toggling directly in the front frame or via AddOns.
    For the fun of it: how about a similar quick button to wipe all cookies at once?
    Both features would help to overcome the obnoxious advertising and paywall trickery by many sites..

    PLEASE?
    Thanks!

    1. Hello, I don’t think any browser offers a JavaScript toggle button at the first instance. Even other browsers do have the option to toggle JS, but it’s within the Site Settings menu.

      Taking about wiping all cookies at once, you can easily do that with few taps. Of course, even this is something not available immediately on the main screen or menu, but available as a sub-menu under Privacy settings on Chrome for Android.

Leave a thought or feedback

Please leave a descriptive comment or feedback with your real name. Our human moderator vets every comment, and it may take 24 to 48 hours to get published or rejected.
Your email address will not be published, and we will never spam your inbox. Required fields are marked *