Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--use-context-snapshot

What does --use-context-snapshot do?

Switch supplied to the renderer if the feature `kUseContextSnapshot` is enabled. A switch is used as at the time the renderer needs this information features have not yet been loaded.

Usage

CLILaunch Chrome with --use-context-snapshot using CLI

chrome --use-context-snapshot

PuppeteerLaunch Chrome with --use-context-snapshot using Puppeteer

const browser = await puppeteer.launch({
  args: ['--use-context-snapshot']
});

PlaywrightLaunch Chrome with --use-context-snapshot using Playwright

const browser = await chromium.launch({
  args: ['--use-context-snapshot']
});

SeleniumLaunch Chrome with --use-context-snapshot using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--use-context-snapshot')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISKANDROID && INCLUDE_BOTH_V8_SNAPSHOTS