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