Comparing version 4.1.0 to 4.2.0
# CHANGELOG - PageXray | ||
version 4.2.0 2021-05-28 | ||
------------------------ | ||
### Added | ||
* Attach info about render blocking assets coming/working in Chrome 92 [#104](https://github.com/sitespeedio/pagexray/pull/104). | ||
version 4.1.0 2021-04-08 | ||
@@ -4,0 +9,0 @@ ------------------------ |
@@ -68,3 +68,3 @@ 'use strict'; | ||
const requestHeaders = headers.flatten(request.headers); | ||
return { | ||
const asset = { | ||
type: contentType, | ||
@@ -93,2 +93,7 @@ url: request.url, | ||
}; | ||
if (entry._renderBlocking) { | ||
asset.renderBlocking = entry._renderBlocking; | ||
} | ||
return asset; | ||
}, | ||
@@ -95,0 +100,0 @@ |
@@ -192,2 +192,16 @@ 'use strict'; | ||
if (asset.renderBlocking) { | ||
if (!currentPage.renderBlocking) { | ||
currentPage.renderBlocking = { | ||
blocking: 0, | ||
potentiallyBlocking: 0 | ||
}; | ||
} | ||
if (asset.renderBlocking === 'potentially_blocking') { | ||
currentPage.renderBlocking.potentiallyBlocking += 1; | ||
} else if (asset.renderBlocking === 'blocking') { | ||
currentPage.renderBlocking.blocking += 1; | ||
} | ||
} | ||
currentPage.transferSize += entry.response.bodySize; | ||
@@ -194,0 +208,0 @@ currentPage.contentSize += |
{ | ||
"name": "pagexray", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Xray your HAR file and know all about the page", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -44,3 +44,6 @@ # PageXray | ||
let pages = pagexray.convert(har); | ||
const pages = pagexray.convert(har); | ||
// Or ofyou want to include the each asset information | ||
// const pages = pagexray.convert(har, {includeAssets: true}); | ||
console.log(pages) | ||
@@ -47,0 +50,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50765
817
184