lighthouse 13.5.0-dev.20261002 → 13.5.0-dev.20261005

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.
@@ -76,8 +76,8 @@ class PredictivePerf extends Audit {
76
76
  pessimisticLCP: lcp.pessimisticEstimate.timeInMs,
77
77
 
78
78
  roughEstimateOfTTFB: timingSummary.metrics.timeToFirstByte,
79
- roughEstimateOfLCPLoadStart: timingSummary.metrics.lcpLoadDelay,
80
- roughEstimateOfLCPLoadEnd: timingSummary.metrics.lcpLoadDuration,
79
+ roughEstimateOfLCPLoadDelay: timingSummary.metrics.lcpLoadDelay,
80
+ roughEstimateOfLCPLoadDuration: timingSummary.metrics.lcpLoadDuration,
81
81
  };
82
82
 
83
83
  const score = Audit.computeLogNormalScore(
@@ -42,15 +42,15 @@ class LCPBreakdown {
42
42
  const throttleRatio = metricLcp / observedLcp;
43
43
 
44
44
  const unclampedLoadStart = (lcpRecord.networkRequestTime - timeOrigin) * throttleRatio;
45
- const loadDelay = Math.max(ttfb, Math.min(unclampedLoadStart, metricLcp));
45
+ const loadStart = Math.max(ttfb, Math.min(unclampedLoadStart, metricLcp));
46
46
 
47
47
  const unclampedLoadEnd = (lcpRecord.networkEndTime - timeOrigin) * throttleRatio;
48
- const loadDuration = Math.max(loadDelay, Math.min(unclampedLoadEnd, metricLcp));
48
+ const loadEnd = Math.max(loadStart, Math.min(unclampedLoadEnd, metricLcp));
49
49
 
50
50
  return {
51
51
  ttfb,
52
- loadDelay,
53
- loadDuration,
52
+ loadDelay: loadStart - ttfb,
53
+ loadDuration: loadEnd - loadStart,
54
54
  };
55
55
  }
56
56
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "13.5.0-dev.20261002",
4
+ "version": "13.5.0-dev.20261005",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {