caption: Control use of JavaScript optimizers
default: 1
desc: |-
  Allows you to set whether <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph>
  will run the v8 JavaScript engine with more advanced JavaScript optimizations enabled.

  Disabling JavaScript optimizations (by setting this policy's value to 2) will
  mean that <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> may render web
  content more slowly.

  This policy can be overridden for specific URL patterns using the <ph
  name="JAVA_SCRIPT_OPTIMIZER_ALLOWED_FOR_SITES_POLICY_NAME">
  JavaScriptOptimizerAllowedForSites</ph> and <ph
  name="JAVA_SCRIPT_OPTIMIZER_BLOCKED_FOR_SITES_POLICY_NAME">
  JavaScriptOptimizerBlockedForSites</ph> policies.

  If this policy is left not set, JavaScript optimizations are enabled.
example_value: 1
features:
  dynamic_refresh: true
  per_profile: true
supported_on:
- android:133-
- chrome.*:133-
- chrome_os:133-
- fuchsia:133-
items:
- caption: Enable advanced JavaScript optimizations on all sites
  name: AllowJavaScriptOptimizer
  value: 1
- caption: Disable advanced JavaScript optimizations on all sites
  name: BlockJavaScriptOptimizer
  value: 2
owners:
- ellyjones@chromium.org
- wfh@chromium.org
- nasko@chromium.org
schema:
  enum:
  - 1
  - 2
  type: integer
tags: []
type: int-enum
