Last active
September 16, 2024 07:03
-
-
Save npofopr/3446928af66185e5b8edc1214e9f1da3 to your computer and use it in GitHub Desktop.
Common Prefetch Links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- DNS preconnect --> | |
<meta http-equiv="x-dns-prefetch-control" content="on"> | |
<link rel="preconnect" href="//ajax.googleapis.com"> | |
<link rel="dns-prefetch" href="https://fonts.gstatic.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"> | |
<link rel="dns-prefetch" href="https://use.fontawesome.com"> | |
<link rel="preconnect" href="https://use.fontawesome.com" crossorigin> | |
<link rel="preconnect" href="//cdnjs.cloudflare.com"> | |
<link rel="preconnect" href="//www.googletagmanager.com"> | |
<link rel="preconnect" href="//www.google-analytics.com"> | |
<link rel="preconnect" href="//mc.yandex.ru"> | |
<link rel="preconnect" href="//cdn.bitrix24.ru"> | |
<link rel="preconnect" href="//bitrix.info"> | |
<!-- Amazon S3 --> | |
<link rel="dns-prefetch" href="//s3.amazonaws.com"> | |
<!-- Google CDN --> | |
<link rel="dns-prefetch" href="//ajax.googleapis.com"> | |
<!-- Microsoft CDN --> | |
<link rel="dns-prefetch" href="//ajax.microsoft.com"> | |
<link rel="dns-prefetch" href="//ajax.aspnetcdn.com"> | |
<!-- CDN JS --> | |
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> | |
<!-- Bootstrap CDN --> | |
<link rel="dns-prefetch" href="//netdna.bootstrapcdn.com"> | |
<!-- Google Tag Manager --> | |
<link rel="dns-prefetch" href="//www.googletagmanager.com"> | |
<!-- Google Analytics --> | |
<link rel="dns-prefetch" href="//www.google-analytics.com"> | |
<!-- Google Fonts --> | |
<link rel="dns-prefetch" href="//fonts.googleapis.com"> | |
<!-- Facebook --> | |
<link rel="dns-prefetch" href="//connect.facebook.net"> | |
<!-- Google+ --> | |
<link rel="dns-prefetch" href="//apis.google.com"> | |
<!-- Linkedin --> | |
<link rel="dns-prefetch" href="//platform.linkedin.com"> | |
<!-- Twitter --> | |
<link rel="dns-prefetch" href="//platform.twitter.com"> |
dns-prefetch = DNS
and preconnect = DNS + TCP + TLS
. I think preconnect should be good enough
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm adding it to my site here. but all except google font. Google font is automatically deleted when I add it. what could be the reason
web site