browsertime 16.6.0 → 16.7.0
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
## 16.7.0 - 2022-05-20
|
|
4
|
+
### Added
|
|
5
|
+
* Inlcude last CPU long task in the HAR file so we can show when it happens [#1793](https://github.com/sitespeedio/browsertime/pull/1793).
|
|
6
|
+
* Inlclude TTFB and INP in the Google Web Vital namespace [#1792](https://github.com/sitespeedio/browsertime/pull/1792).
|
|
3
7
|
## 16.6.0 - 2022-05-20
|
|
4
8
|
### Added
|
|
5
9
|
* Implemented experimental Interaction to next paint that's useful if you test user journeys [#1791](https://github.com/sitespeedio/browsertime/pull/1791).
|
|
@@ -320,6 +320,10 @@ class Chromium {
|
|
|
320
320
|
result.browserScripts.pageinfo.cumulativeLayoutShift;
|
|
321
321
|
}
|
|
322
322
|
if (result.browserScripts.timings) {
|
|
323
|
+
if (result.browserScripts.timings.ttfb) {
|
|
324
|
+
result.googleWebVitals.ttfb = result.browserScripts.timings.ttfb;
|
|
325
|
+
}
|
|
326
|
+
|
|
323
327
|
if (result.browserScripts.timings.largestContentfulPaint) {
|
|
324
328
|
result.googleWebVitals.largestContentfulPaint =
|
|
325
329
|
result.browserScripts.timings.largestContentfulPaint.renderTime ||
|
|
@@ -338,6 +342,11 @@ class Chromium {
|
|
|
338
342
|
: 0;
|
|
339
343
|
}
|
|
340
344
|
|
|
345
|
+
if (result.browserScripts.timings.interactionToNextPaint) {
|
|
346
|
+
result.googleWebVitals.interactionToNextPaint =
|
|
347
|
+
result.browserScripts.timings.interactionToNextPaint;
|
|
348
|
+
}
|
|
349
|
+
|
|
341
350
|
// Add LCP to the HAR
|
|
342
351
|
if (
|
|
343
352
|
result.browserScripts.timings.largestContentfulPaint &&
|
package/lib/support/har/index.js
CHANGED
|
@@ -91,6 +91,10 @@ function addExtrasToHAR(
|
|
|
91
91
|
harPageTimings._firstPaint = timings.firstPaint;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
if (cpu && cpu.longTasks && cpu.longTasks.lastLongTask) {
|
|
95
|
+
harPageTimings._lastCPULongTask = cpu.longTasks.lastLongTask;
|
|
96
|
+
}
|
|
97
|
+
|
|
94
98
|
if (timings && timings.largestContentfulPaint) {
|
|
95
99
|
harPageTimings._largestContentfulPaint =
|
|
96
100
|
timings.largestContentfulPaint.renderTime;
|