en-US chrome computer user

Allow JavaScript optimization on these sites

Verified with Google Chrome — updated on October 20, 2026 Supported on: Microsoft Windows 7 or later

Google Chrome

Path in the GPO console

Computer Configuration\Administrative Templates\Google\Google Chrome\Content settings

Registry

HKLM Software\Policies\Google\Chrome
HKCU Software\Policies\Google\Chrome

Other deployment channels

Intune (ADMX ingestion)
./Device/Vendor/MSFT/Policy/Config/Chrome~Policy~googlechrome~ContentSettings/JavaScriptOptimizerAllowedForSites

OMA-URI published by Google. It requires the Chrome ADMX templates (chrome.admx, google.admx) to be imported in Intune first.

macOS / Linux preference JavaScriptOptimizerAllowedForSites
Android restriction JavaScriptOptimizerAllowedForSites
Supported platforms
  • Google Chrome (Android) — since version 133
  • Google Chrome (Linux) — since version 133
  • Google Chrome (Mac) — since version 133
  • Google Chrome (Windows) — since version 133
  • Google ChromeOS (Google ChromeOS) — since version 133
  • Google Chrome (Fuchsia) — since version 133

Source: official Chrome policy list, version 157.0.8103.79 Chrome Enterprise policy page

Options

Allow JavaScript optimization on these sites
List (registry values) list list under Software\Policies\Google\Chrome\JavaScriptOptimizerAllowedForSites

Description

Allows you to set a list of site url patterns that specify sites for which advanced JavaScript optimizations are enabled. For detailed information on valid site url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, *, are allowed. Policy exceptions can be set for specific subdomains as well as entire sites. For example, a policy set for only subdomain.site.com applies to subdomain.site.com without affecting site.com. In some cases where a subdomain cannot be isolated from its parent site, it may inherit the policy set on site.com. Exceptions may also not take effect for frames loaded in an existing tab until the site is opened in a new tab. On low-memory Android devices, site-specific exceptions may not be enforced, and sites will instead use the policy from DefaultJavaScriptOptimizerSetting, if set, or default to the profile's JavaScript optimization setting. To enforce exceptions, Google Chrome may place sites or subdomains whose setting differs from the default into dedicated processes. This can increase memory usage, especially on Android or when a wildcard pattern matches many subdomains, since each matching origin may be isolated separately. Isolated subdomains also cannot use document.domain to access their parent site. Note: In versions 138 and earlier, policy exceptions were only enforced at a site granularity (eTLD+1). A policy set for only subdomain.site.com did not take effect, even for subdomain.site.com; it had to be set on site.com to apply to both site.com and subdomain.site.com. This policy applies on a frame-by-frame basis and not based on top level origin url alone, so e.g. if site-one.com is listed in the JavaScriptOptimizerAllowedForSites policy but site-one.com loads a frame containing site-two.com then site-one.com will have JavaScript optimizations enabled, but site-two.com will use the policy from DefaultJavaScriptOptimizerSetting, if set, or default to JavaScript optimizations enabled. Blocklist entries have higher priority than allowlist entries, which in turn have higher priority than the configured default value. If this policy is not set for a site then the policy from DefaultJavaScriptOptimizerSetting applies to the site, if set, otherwise Javascript optimization is enabled for the site. Example value: [*.]example.edu

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO. ⓘ

Scope

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Allow JavaScript optimization on these sites
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: Microsoft Windows 7 or later

[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\JavaScriptOptimizerAllowedForSites]
; List values: enter one value per line in the builder UI.
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Allow JavaScript optimization on these sites
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: Microsoft Windows 7 or later

$path = 'HKLM:\Software\Policies\Google\Chrome\JavaScriptOptimizerAllowedForSites'
New-Item -Path $path -Force | Out-Null
# List values: enter one value per line in the builder UI.

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview