From fab444b7b88435e07c017d9d561d1bed27077340 Mon Sep 17 00:00:00 2001 From: Jonathan Sykes Date: Thu, 8 Oct 2026 04:12:16 +0800 Subject: [PATCH] Start font preloads before the layout bootstrap --- frontend/index.html | 4 ++-- frontend/shell-consistency.test.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 5ffd4f6..e0cb08b 100755 --- a/frontend/index.html +++ b/frontend/index.html @@ -16,11 +16,11 @@ content="default-src 'self'; img-src 'self' https: data: asset: http://asset.localhost blob:; media-src 'self' https: blob: asset: http://asset.localhost; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com data:; script-src 'self' 'wasm-unsafe-eval' https://esm.sh; connect-src 'self' https: ipc: http://ipc.localhost blob:; worker-src 'self';" /> YT Player - - + + diff --git a/frontend/shell-consistency.test.js b/frontend/shell-consistency.test.js index d44f109..bbdfbff 100644 --- a/frontend/shell-consistency.test.js +++ b/frontend/shell-consistency.test.js @@ -76,6 +76,7 @@ test('only core scripts and styles remain eager; native fallback and active layo assert.ok(html.indexOf('id="ytp-assets"')')); assert.ok(html.indexOf('src="lazy.js"')([^<]+)<\/script>/)[1]).groups,groups); for(const name of ['playlist','settings','service-mode','lyrics-editor'])assert.ok(groups['feature:'+name].eager); });