@next-core/brick-kit 2.153.0 → 2.153.1

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.esm.js CHANGED
@@ -12513,17 +12513,20 @@ class Router {
12513
12513
  route_alias: route === null || route === void 0 ? void 0 : route.alias
12514
12514
  }, analyticsData));
12515
12515
  _this3.state = "mounted";
12516
- devtoolsHookEmit("rendered"); // Try to prefetch during a browser's idle periods.
12517
- // https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback
12518
-
12519
- if (typeof window.requestIdleCallback === "function") {
12520
- window.requestIdleCallback(() => {
12521
- _this3.kernel.prefetchDepsOfStoryboard(storyboard);
12522
- });
12523
- } else {
12524
- setTimeout(() => {
12525
- _this3.kernel.prefetchDepsOfStoryboard(storyboard);
12526
- }, 0);
12516
+ devtoolsHookEmit("rendered");
12517
+
12518
+ if (!_this3.featureFlags["disable-prefetch-scripts"]) {
12519
+ // Try to prefetch during a browser's idle periods.
12520
+ // https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback
12521
+ if (typeof window.requestIdleCallback === "function") {
12522
+ window.requestIdleCallback(() => {
12523
+ _this3.kernel.prefetchDepsOfStoryboard(storyboard);
12524
+ });
12525
+ } else {
12526
+ setTimeout(() => {
12527
+ _this3.kernel.prefetchDepsOfStoryboard(storyboard);
12528
+ }, 0);
12529
+ }
12527
12530
  }
12528
12531
 
12529
12532
  return;