dave
05/24/2023, 5:56 PMjavascript
setInterval(() => {
const link = document.createElement("link");
link.setAttribute("fetchpriority", "low");
link.setAttribute("rel", "preload");
link.setAttribute("href", `/geolocation.json`);
link.setAttribute("as", "fetch");
link.setAttribute("crossorigin", "anonymous");
document.head.appendChild(link);
}, 60000)
You should probably remove the old link so you don't end up with hundreds of elements in your header over time 😛𝓣𝓸𝓫𝓲
05/24/2023, 5:57 PMnora
05/24/2023, 6:11 PMnora
05/24/2023, 6:12 PMnora
05/24/2023, 6:12 PMnora
05/24/2023, 6:13 PMkian
05/24/2023, 6:19 PMkian
05/24/2023, 6:19 PMboywithkeyboard
05/24/2023, 7:22 PMwrangler deploy
? i'm using only Workers Scripts:Edit
permission at the moment and get an "unauthorized" error in my logs...Neiki
05/24/2023, 7:26 PMPeter Belbin
05/24/2023, 8:00 PMJames
05/24/2023, 8:05 PMCyb3r-Jok3
05/24/2023, 8:10 PMNeiki
05/24/2023, 8:18 PMkian
05/24/2023, 8:25 PMNeiki
05/24/2023, 8:26 PMLiberator
05/24/2023, 8:29 PMNeiki
05/24/2023, 8:48 PMbulk88
05/24/2023, 8:56 PMbulk88
05/24/2023, 8:56 PMbulk88
05/24/2023, 8:57 PMbulk88
05/24/2023, 8:57 PMbulk88
05/24/2023, 8:59 PMdave
05/24/2023, 9:11 PMdave
05/24/2023, 9:12 PMdave
05/24/2023, 9:17 PMbulk88
05/24/2023, 9:28 PMbulk88
05/24/2023, 9:29 PMbulk88
05/24/2023, 9:30 PM