From e3099bac5f5a13425d2f9c2989e1943e648a0fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sat, 26 Sep 2026 09:53:17 +0200 Subject: [PATCH] feat: preconnect to the CDN host --- .../Configuration/TypoScript/Page/Main.typoscript | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript index b12f9bfb..42aacca5 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript @@ -31,6 +31,15 @@ page { 40.value = "> } + # Every image on the page comes from the CDN host (see Extensions/Replacer.typoscript), + # so a cold visitor pays a full DNS + TCP + TLS handshake - measured at 50-70ms - before + # the first one can start downloading. `preconnect` gets that out of the way while the + # HTML is still parsing. No `crossorigin`: images are fetched without CORS, and an + # anonymous-vs-CORS mismatch would open a second connection instead of reusing this one. + # Fonts, which would need it, are served by this host now. + headerData.100 = TEXT + headerData.100.value = + headerData.333 = TEXT headerData.333.value (