@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.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");
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
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;
|