Something went wrong. Try again.
find work, anywhere www.remotehiro.com
rust job-board
Something went wrong. Try again.
392 B · 20 lines
JavaScript
at main
123456789101112131415161718192021const FETCH_TIMER = 150;let pls = document.querySelectorAll("a[href][preload]");
pls.forEach((link) => { let timeout;
link.addEventListener("mouseover", (e) => { timeout = setTimeout(() => { fetchPage(link.href) }, FETCH_TIMER); });
link.addEventListener("mouseout", (e) => { clearTimeout(timeout); })})
async function fetchPage(url) { await fetch(url);}