summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorDaniel Micay <daniel.micay@grapheneos.org>2025-05-08 00:03:16 -0400
committerDaniel Micay <daniel.micay@grapheneos.org>2025-05-08 00:04:35 -0400
commit53c604e3cdd0f95f9b82fda42aedab3f14c2b15c (patch)
tree8e631bebb6e8f890c0b666ea1c5d5c7124f977e6 /nginx
parent5a4510ee4a526b74af62e5c1b97855291f50d32f (diff)
raise fetchpriority for important images
This was detected by PageSpeed Insights as an issue and it makes sense to address it.
Diffstat (limited to 'nginx')
-rw-r--r--nginx/nginx.conf2
-rw-r--r--nginx/snippets/preload.conf2
2 files changed, 2 insertions, 2 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 28fb9d92..a1a6583f 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -87,7 +87,7 @@ http {
/build.html ", <[[path|/js/redirect.js]]>; rel=modulepreload; integrity=[[integrity|/js/redirect.js]]";
/faq.html ", <[[path|/js/redirect.js]]>; rel=modulepreload; integrity=[[integrity|/js/redirect.js]]";
/features.html ", <[[path|/js/redirect.js]]>; rel=modulepreload; integrity=[[integrity|/js/redirect.js]]";
- /index.html ", <[[path|/pixel-7-pro.svg]]>; rel=preload; as=image, <[[path|/js/redirect.js]]>; rel=modulepreload; integrity=[[integrity|/js/redirect.js]]";
+ /index.html ", <[[path|/pixel-7-pro.svg]]>; rel=preload; as=image; fetchpriority=high, <[[path|/js/redirect.js]]>; rel=modulepreload; integrity=[[integrity|/js/redirect.js]]";
/install/cli.html ", <[[path|/js/redirect.js]]>; rel=modulepreload; integrity=[[integrity|/js/redirect.js]]";
/install/index.html ", <[[path|/js/redirect.js]]>; rel=modulepreload; integrity=[[integrity|/js/redirect.js]]";
/install/web.html ", <[[path|/js/redirect.js]]>; rel=modulepreload; integrity=[[integrity|/js/redirect.js]]";
diff --git a/nginx/snippets/preload.conf b/nginx/snippets/preload.conf
index 5403cae4..eb25e18c 100644
--- a/nginx/snippets/preload.conf
+++ b/nginx/snippets/preload.conf
@@ -1 +1 @@
-add_header Link "<[[path|/main.css]]>; rel=preload; as=style; integrity=[[integrity|/main.css]], </fonts/roboto-v30-regular-latin.woff2>; rel=preload; as=font; crossorigin, </fonts/roboto-v30-bold-latin.woff2>; rel=preload; as=font; crossorigin, <[[path|/mask-icon.svg]]>; rel=preload; as=image$preload_resources_uri" always;
+add_header Link "<[[path|/main.css]]>; rel=preload; as=style; integrity=[[integrity|/main.css]], </fonts/roboto-v30-regular-latin.woff2>; rel=preload; as=font; crossorigin, </fonts/roboto-v30-bold-latin.woff2>; rel=preload; as=font; crossorigin, <[[path|/mask-icon.svg]]>; rel=preload; as=image; fetchpriority=high$preload_resources_uri" always;