@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.umd.cjs CHANGED
@@ -15521,7 +15521,7 @@ class Replayer {
15521
15521
  speed: 1,
15522
15522
  maxSpeed: 360,
15523
15523
  root: document.body,
15524
- loadTimeout: 0,
15524
+ loadTimeout: 5e3,
15525
15525
  skipInactive: false,
15526
15526
  inactivePeriodThreshold: 10 * 1e3,
15527
15527
  showWarning: true,
@@ -16085,7 +16085,7 @@ class Replayer {
16085
16085
  head.querySelectorAll('link[rel="stylesheet"]').forEach((css) => {
16086
16086
  if (!css.sheet) {
16087
16087
  unloadSheets.add(css);
16088
- css.addEventListener("load", () => {
16088
+ const onLoadOrError = () => {
16089
16089
  unloadSheets.delete(css);
16090
16090
  if (unloadSheets.size === 0 && timer !== -1) {
16091
16091
  if (beforeLoadState.matches("playing")) {
@@ -16097,7 +16097,9 @@ class Replayer {
16097
16097
  }
16098
16098
  unsubscribe();
16099
16099
  }
16100
- });
16100
+ };
16101
+ css.addEventListener("load", onLoadOrError);
16102
+ css.addEventListener("error", onLoadOrError);
16101
16103
  }
16102
16104
  });
16103
16105
  if (unloadSheets.size > 0) {