@absolutejs/beacon 0.6.47 → 0.6.48
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/dist/index.js +5 -2
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2672,11 +2672,14 @@ var createBeacon = (options) => {
|
|
|
2672
2672
|
const hasPhaseTiming = typeof entry.processingStart === "number" && typeof entry.processingEnd === "number";
|
|
2673
2673
|
const processingDurationMs = hasPhaseTiming ? Math.round(Math.max(0, entry.processingEnd - entry.processingStart)) : undefined;
|
|
2674
2674
|
const presentationDelayMs = hasPhaseTiming ? Math.round(Math.max(0, interactionEnd - entry.processingEnd)) : undefined;
|
|
2675
|
+
const inputDelayMs = hasPhaseTiming ? Math.round(Math.max(0, entry.processingStart - entry.startTime)) : undefined;
|
|
2675
2676
|
if (target === "unknown" && overlappingFrame === undefined && processingDurationMs !== undefined && processingDurationMs <= 16 && presentationDelayMs !== undefined && presentationDelayMs >= minimum)
|
|
2676
2677
|
continue;
|
|
2678
|
+
if (blockingObserver !== undefined && overlappingFrame === undefined && inputDelayMs !== undefined && inputDelayMs >= minimum && processingDurationMs !== undefined && processingDurationMs <= 16 && presentationDelayMs !== undefined && presentationDelayMs < minimum)
|
|
2679
|
+
continue;
|
|
2677
2680
|
emitSignal(`Slow interaction — ${entry.name} took ${Math.round(entry.duration)}ms — ${shortUrl(location.href)}`, {
|
|
2678
2681
|
...hasPhaseTiming ? {
|
|
2679
|
-
inputDelayMs: String(
|
|
2682
|
+
inputDelayMs: String(inputDelayMs),
|
|
2680
2683
|
presentationDelayMs: String(presentationDelayMs),
|
|
2681
2684
|
processingDurationMs: String(processingDurationMs)
|
|
2682
2685
|
} : { phaseAttribution: "unavailable" },
|
|
@@ -4307,5 +4310,5 @@ export {
|
|
|
4307
4310
|
BEACON_ATTRIBUTE
|
|
4308
4311
|
};
|
|
4309
4312
|
|
|
4310
|
-
//# debugId=
|
|
4313
|
+
//# debugId=EE7CBD85B0917E7564756E2164756E21
|
|
4311
4314
|
//# sourceMappingURL=index.js.map
|