release: WRNexusJS 0.8.2
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user