Chrome Flags Reference

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

--gpu-sandbox-start-early

What does --gpu-sandbox-start-early do?

Starts the GPU sandbox before creating a GL context.

Usage

CLILaunch Chrome with --gpu-sandbox-start-early using CLI

chrome --gpu-sandbox-start-early

PuppeteerLaunch Chrome with --gpu-sandbox-start-early using Puppeteer

const browser = await puppeteer.launch({
  args: ['--gpu-sandbox-start-early']
});

PlaywrightLaunch Chrome with --gpu-sandbox-start-early using Playwright

const browser = await chromium.launch({
  args: ['--gpu-sandbox-start-early']
});

SeleniumLaunch Chrome with --gpu-sandbox-start-early using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--gpu-sandbox-start-early')

driver = webdriver.Chrome(options=options)