chore(ui): make use of speculative loading

https://developer.mozilla.org/en-US/docs/Web/Performance/Speculative_loading
This commit is contained in:
Guanran Wang 2024-10-25 21:07:26 +08:00
parent b88b96546f
commit 064caaa946
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -7,6 +7,18 @@
<title>What is my IP?</title> <title>What is my IP?</title>
<link href="generated.css" rel="stylesheet" /> <link href="generated.css" rel="stylesheet" />
<script src="script.js" defer></script> <script src="script.js" defer></script>
<link rel="dns-prefetch" href="https://fonts.googleapis.com/" />
<link rel="dns-prefetch" href="https://fonts.gstatic.com/" />
<link rel="dns-prefetch" href="https://api.ip.sb/" />
<link rel="dns-prefetch" href="https://api-v3.speedtest.cn/" />
<link rel="dns-prefetch" href="https://api.ipapi.is/" />
<link rel="preconnect" href="https://fonts.googleapis.com/" />
<link rel="preconnect" href="https://fonts.gstatic.com/" />
<link rel="preconnect" href="https://api.ip.sb/" />
<link rel="preconnect" href="https://api-v3.speedtest.cn/" />
<link rel="preconnect" href="https://api.ipapi.is/" />
</head> </head>
<body <body
class="text-violet-950 bg-violet-100 dark:text-slate-100 dark:bg-slate-900 font-mono font-medium text-sm md:text-base" class="text-violet-950 bg-violet-100 dark:text-slate-100 dark:bg-slate-900 font-mono font-medium text-sm md:text-base"