diff options
author | Evandro Leopoldino Gonçalves <evandrolgoncalves@gmail.com> | 2024-02-14 00:13:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 23:13:23 +0000 |
commit | 836cff306e3485f894cba7c7a4245178745bbfa5 (patch) | |
tree | 16c66dfe1dead9440accc7f5430d888ee32c970e | |
parent | 08525b52c3b5ea7128ad87d0231c5a852b5495a6 (diff) | |
download | voidsky-836cff306e3485f894cba7c7a4245178745bbfa5.tar.zst |
Adds `preconnect` links to essencial external domains (#2847)
* adds preconnect links to essencial external domains * adds preconnect links to essencial external domains in the base.html template * fixes formatting issue
-rw-r--r-- | bskyweb/templates/base.html | 5 | ||||
-rw-r--r-- | web/index.html | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html index 7513d6fd2..a2d81fc96 100644 --- a/bskyweb/templates/base.html +++ b/bskyweb/templates/base.html @@ -4,6 +4,11 @@ <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, viewport-fit=cover"> <meta name="referrer" content="origin-when-cross-origin"> + <!-- + Preconnect to essential domains + --> + <link rel="preconnect" href="https://bsky.social"> + <link rel="preconnect" href="https://bsky.network"> <title>{%- block head_title -%}Bluesky{%- endblock -%}</title> <!-- Hello Humans! API docs at https://atproto.com --> diff --git a/web/index.html b/web/index.html index e00b13cd6..42b443bb6 100644 --- a/web/index.html +++ b/web/index.html @@ -10,6 +10,11 @@ name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1.00001, viewport-fit=cover" /> + <!-- + Preconnect to essential domains + --> + <link rel="preconnect" href="https://bsky.social"> + <link rel="preconnect" href="https://bsky.network"> <title>%WEB_TITLE%</title> <style> /** |