Chrome Flags Reference

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

--process-per-site

What does --process-per-site do?

Enable the "Process Per Site" process model for all domains. This mode consolidates same-site pages so that they share a single process. More details here: - https://www.chromium.org/developers/design-documents/process-models - The class comment in site_instance.h, listing the supported process models. IMPORTANT: This isn't to be confused with --site-per-process (which is about isolation, not consolidation). You probably want the other one.

Usage

CLILaunch Chrome with --process-per-site using CLI

chrome --process-per-site

PuppeteerLaunch Chrome with --process-per-site using Puppeteer

const browser = await puppeteer.launch({
  args: ['--process-per-site']
});

PlaywrightLaunch Chrome with --process-per-site using Playwright

const browser = await chromium.launch({
  args: ['--process-per-site']
});

SeleniumLaunch Chrome with --process-per-site using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--process-per-site')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK