lighthouse 11.6.0-dev.20240310 → 11.6.0-dev.20240312

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,11 +119,13 @@ class FullPageScreenshot extends BaseGatherer {
119
119
  * @return {Promise<LH.Result.FullPageScreenshot['screenshot']>}
120
120
  */
121
121
  async _takeScreenshot(context) {
122
- const metrics = await context.driver.defaultSession.sendCommand('Page.getLayoutMetrics');
123
- const result = await context.driver.defaultSession.sendCommand('Page.captureScreenshot', {
124
- format: FULL_PAGE_SCREENSHOT_FORMAT,
125
- quality: FULL_PAGE_SCREENSHOT_QUALITY,
126
- });
122
+ const [metrics, result] = await Promise.all([
123
+ context.driver.defaultSession.sendCommand('Page.getLayoutMetrics'),
124
+ context.driver.defaultSession.sendCommand('Page.captureScreenshot', {
125
+ format: FULL_PAGE_SCREENSHOT_FORMAT,
126
+ quality: FULL_PAGE_SCREENSHOT_QUALITY,
127
+ }),
128
+ ]);
127
129
  const data = `data:image/${FULL_PAGE_SCREENSHOT_FORMAT};base64,` + result.data;
128
130
 
129
131
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "11.6.0-dev.20240310",
4
+ "version": "11.6.0-dev.20240312",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {