瀏覽代碼

Added Prefetch and Preconnect

Yoginth 7 年之前
父節點
當前提交
bdfba3e28d
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      templates/base/head.tmpl

+ 7 - 2
templates/base/head.tmpl

@@ -2,11 +2,16 @@
 <html lang="{{.Lang}}">
 <head data-suburl="{{AppSubURL}}">
 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-	
+	<link rel="preconnect" href="https://cdn.gitote.in">
+	<link rel="preconnect" href="https://cdn.jsdelivr.net">
+	<link rel="preconnect" href="https://cdnjs.cloudflare.com">
+	<link rel="preconnect" href="https://secure.gravatar.com">
+	<link rel="preconnect" href="https://unpkg.com">
 	<link rel="dns-prefetch" href="https://cdn.gitote.in">
 	<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
-	<link rel="dns-prefetch" href="https://unpkg.com">
 	<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com">
+	<link rel="dns-prefetch" href="https://secure.gravatar.com">
+	<link rel="dns-prefetch" href="https://unpkg.com">
 	{{template "base/meta" .}}
 	<link rel="icon" href="{{AppURL}}favicon.ico" type="image/x-icon"/>
 	<link rel="fluid-icon" href="{{AppURL}}fluidicon.png" title="Gitote">