fix: stop eager admin page prefetch
This commit is contained in:
@@ -198,9 +198,6 @@ function installNavigationPrefetch() {
|
||||
link.addEventListener("focus", () => prefetch(link), { once: true });
|
||||
link.addEventListener("click", () => document.documentElement.classList.add("navigating"));
|
||||
});
|
||||
const warm = () => document.querySelectorAll(".tabs a, .subnav a").forEach(prefetch);
|
||||
if ("requestIdleCallback" in window) requestIdleCallback(warm, { timeout: 2500 });
|
||||
else setTimeout(warm, 1200);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user