@betterbugs/rrweb-player 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.
@@ -11183,7 +11183,7 @@ class Replayer {
11183
11183
  speed: 1,
11184
11184
  maxSpeed: 360,
11185
11185
  root: document.body,
11186
- loadTimeout: 0,
11186
+ loadTimeout: 5e3,
11187
11187
  skipInactive: false,
11188
11188
  inactivePeriodThreshold: 10 * 1e3,
11189
11189
  showWarning: true,
@@ -11747,7 +11747,7 @@ class Replayer {
11747
11747
  head.querySelectorAll('link[rel="stylesheet"]').forEach((css) => {
11748
11748
  if (!css.sheet) {
11749
11749
  unloadSheets.add(css);
11750
- css.addEventListener("load", () => {
11750
+ const onLoadOrError = () => {
11751
11751
  unloadSheets.delete(css);
11752
11752
  if (unloadSheets.size === 0 && timer !== -1) {
11753
11753
  if (beforeLoadState.matches("playing")) {
@@ -11759,7 +11759,9 @@ class Replayer {
11759
11759
  }
11760
11760
  unsubscribe();
11761
11761
  }
11762
- });
11762
+ };
11763
+ css.addEventListener("load", onLoadOrError);
11764
+ css.addEventListener("error", onLoadOrError);
11763
11765
  }
11764
11766
  });
11765
11767
  if (unloadSheets.size > 0) {