@betterbugs/rrweb 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/rrweb.cjs CHANGED
@@ -15513,7 +15513,7 @@ class Replayer {
15513
15513
  speed: 1,
15514
15514
  maxSpeed: 360,
15515
15515
  root: document.body,
15516
- loadTimeout: 0,
15516
+ loadTimeout: 5e3,
15517
15517
  skipInactive: false,
15518
15518
  inactivePeriodThreshold: 10 * 1e3,
15519
15519
  showWarning: true,
@@ -16077,7 +16077,7 @@ class Replayer {
16077
16077
  head.querySelectorAll('link[rel="stylesheet"]').forEach((css) => {
16078
16078
  if (!css.sheet) {
16079
16079
  unloadSheets.add(css);
16080
- css.addEventListener("load", () => {
16080
+ const onLoadOrError = () => {
16081
16081
  unloadSheets.delete(css);
16082
16082
  if (unloadSheets.size === 0 && timer !== -1) {
16083
16083
  if (beforeLoadState.matches("playing")) {
@@ -16089,7 +16089,9 @@ class Replayer {
16089
16089
  }
16090
16090
  unsubscribe();
16091
16091
  }
16092
- });
16092
+ };
16093
+ css.addEventListener("load", onLoadOrError);
16094
+ css.addEventListener("error", onLoadOrError);
16093
16095
  }
16094
16096
  });
16095
16097
  if (unloadSheets.size > 0) {