@betterbugs/all 2.0.0-alpha.19 → 2.0.0-alpha.20

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/all.js CHANGED
@@ -15483,7 +15483,7 @@ class Replayer {
15483
15483
  speed: 1,
15484
15484
  maxSpeed: 360,
15485
15485
  root: document.body,
15486
- loadTimeout: 0,
15486
+ loadTimeout: 5e3,
15487
15487
  skipInactive: false,
15488
15488
  inactivePeriodThreshold: 10 * 1e3,
15489
15489
  showWarning: true,
@@ -16047,7 +16047,7 @@ class Replayer {
16047
16047
  head.querySelectorAll('link[rel="stylesheet"]').forEach((css) => {
16048
16048
  if (!css.sheet) {
16049
16049
  unloadSheets.add(css);
16050
- css.addEventListener("load", () => {
16050
+ const onLoadOrError = () => {
16051
16051
  unloadSheets.delete(css);
16052
16052
  if (unloadSheets.size === 0 && timer !== -1) {
16053
16053
  if (beforeLoadState.matches("playing")) {
@@ -16059,7 +16059,9 @@ class Replayer {
16059
16059
  }
16060
16060
  unsubscribe();
16061
16061
  }
16062
- });
16062
+ };
16063
+ css.addEventListener("load", onLoadOrError);
16064
+ css.addEventListener("error", onLoadOrError);
16063
16065
  }
16064
16066
  });
16065
16067
  if (unloadSheets.size > 0) {