From 8b7a4d7550a5c538a75c99a40e73d30192e0922b Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 3 Jul 2019 23:24:54 +0300 Subject: [PATCH] refactor(docs-infra): switch `test-pwa-score` to use headless Chrome (#31414) This is slightly faster (15%-20%). Currently, this doesn't make a noticeable difference, since the total time is 10s-15s, but it might add up, if we decide to run audits on multiple pages. PR Close #31414 --- aio/scripts/test-pwa-score.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/scripts/test-pwa-score.js b/aio/scripts/test-pwa-score.js index fd531a8b8a..fcdec2e344 100644 --- a/aio/scripts/test-pwa-score.js +++ b/aio/scripts/test-pwa-score.js @@ -19,7 +19,7 @@ const printer = require('lighthouse/lighthouse-cli/printer'); const logger = require('lighthouse-logger'); // Constants -const CHROME_LAUNCH_OPTS = {}; +const CHROME_LAUNCH_OPTS = {chromeFlags: ['--headless']}; const LIGHTHOUSE_FLAGS = {logLevel: 'info'}; const SKIPPED_HTTPS_AUDITS = ['redirects-http', 'uses-http2']; const VIEWER_URL = 'https://googlechrome.github.io/lighthouse/viewer/';