chromium/components/policy/resources/templates/policy_definitions/ContentSettings/DefaultJavaScriptOptimizerSetting.yaml

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
future_on:
- android
- chrome.*
- chrome_os
- fuchsia
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:
- [email protected]
- [email protected]
- [email protected]
schema:
  enum:
  - 1
  - 2
  type: integer
tags: []
type: int-enum