feat: add settings menu
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m40s
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m40s
This commit is contained in:
8
src/helpers/dom.ts
Normal file
8
src/helpers/dom.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export const prefetch = (url: string | null | undefined) => {
|
||||
if (!url) return;
|
||||
const link = document.createElement("link");
|
||||
link.rel = "prefetch";
|
||||
link.href = url;
|
||||
link.onload = () => link.remove();
|
||||
document.head.appendChild(link);
|
||||
};
|
||||
Reference in New Issue
Block a user