From 40b92ebc0dc50c522827830fccacb2b96613a1d0 Mon Sep 17 00:00:00 2001 From: Jonathan Sykes Date: Thu, 8 Oct 2026 03:50:57 +0800 Subject: [PATCH] Request selected layout styles before common CSS blocks the 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 bfc7c2a..377fb1b 100755 --- a/frontend/index.html +++ b/frontend/index.html @@ -16,6 +16,8 @@ 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 + + @@ -24,8 +26,6 @@ - - diff --git a/frontend/shell-consistency.test.js b/frontend/shell-consistency.test.js index 92080a7..f42dc57 100644 --- a/frontend/shell-consistency.test.js +++ b/frontend/shell-consistency.test.js @@ -75,6 +75,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); });