release: WRNexusJS 0.8.2
Quality / quality (ubuntu-latest) (push) Failing after 22s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-03 02:14:54 +05:30
parent 3c6b659f36
commit 4550a11460
84 changed files with 214 additions and 150 deletions
+4 -1
View File
@@ -638,7 +638,10 @@ export const NAV_RUNTIME = String.raw`
while (prefetched.size > 20) prefetched.delete(prefetched.keys().next().value);
}
document.addEventListener("pointerover", function (event) {
// Prefetch only on explicit pointer intent. Delegated pointerover fires when
// scrolling moves links underneath a stationary pointer, which can otherwise
// download every link on a long index page.
document.addEventListener("pointerdown", function (event) {
var anchor = event.target && event.target.closest ? event.target.closest("a") : null;
prefetch(anchor);
}, { passive: true });