--disable-background-networking
What does --disable-background-networking do?
Disable several subsystems which run network requests in the background. This is for use when doing network performance testing to avoid noise in the measurements.
Usage
CLILaunch Chrome with --disable-background-networking using CLI
chrome --disable-background-networkingPuppeteerLaunch Chrome with --disable-background-networking using Puppeteer
const browser = await puppeteer.launch({
args: ['--disable-background-networking']
});PlaywrightLaunch Chrome with --disable-background-networking using Playwright
const browser = await chromium.launch({
args: ['--disable-background-networking']
});SeleniumLaunch Chrome with --disable-background-networking using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--disable-background-networking')
driver = webdriver.Chrome(options=options)