JavaScript Restrictor
Browser extension that improves privacy and security
Loading...
Searching...
No Matches
config.js File Reference

WebExtension benchmarking configuration. More...

import chromeLauncher;
Include dependency graph for config.js:

Variables

const urls
 
const runCount = 7
 
const audits
 
const lighthouse
 
const stdout = true
 
const flags
 

Detailed Description

WebExtension benchmarking configuration.

Author
Copyright (C) 2023 Martin Zmitko
License:
SPDX-License-Identifier: GPL-3.0-or-later

Variable Documentation

◆ audits

audits
Initial value:
= [
'first-meaningful-paint',
'largest-contentful-paint',
'total-blocking-time',
'cumulative-layout-shift',
'speed-index',
]

◆ flags

flags
Initial value:
= {
defaultFlags: chromeLauncher.Launcher.defaultFlags().filter(flag => flag !== '--disable-extensions'),
getExtensionFlags(extensionPath) {
return this.defaultFlags.concat(`--load-extension=${extensionPath}`);
},
}
$
Definition wrappingS-DOM.js:37

◆ lighthouse

lighthouse
Initial value:
= {
extends: 'lighthouse:default',
settings: {
onlyAudits: audits,
disableFullPageScreenshot: true,
throttlingMethod: 'provided',
cpuSlowdownMultiplier: 1,
formFactor: 'desktop',
screenEmulation: {
mobile: false,
width: 1920,
height: 1080,
deviceScaleFactor: 1,
disabled: false,
},
},
}
const audits
Definition config.js:82

◆ runCount

runCount = 7

◆ stdout

stdout = true

◆ urls

urls