diff --git a/src/app/app.spec.ts b/src/app/app.spec.ts index ce72eea..1b15138 100644 --- a/src/app/app.spec.ts +++ b/src/app/app.spec.ts @@ -90,6 +90,11 @@ describe('App', () => { expect( document.head.querySelector('link[rel~="icon"]')?.getAttribute('href'), ).toBe(tenant.favicon); + expect( + document.head + .querySelector('link[rel~="icon"]') + ?.getAttribute('fetchpriority'), + ).toBe('high'); }); it('renders the tenant not found screen when the tenant is missing', async () => { @@ -114,6 +119,10 @@ describe('App', () => { expect( document.head.querySelector('link[rel~="icon"]')?.getAttribute('href'), ).toBe("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E"); + expect( + document.head + .querySelector('link[rel~="icon"]') + ?.getAttribute('fetchpriority'), + ).toBe('high'); }); - }); diff --git a/src/app/app.ts b/src/app/app.ts index 268c29d..fcb49a6 100644 --- a/src/app/app.ts +++ b/src/app/app.ts @@ -78,6 +78,7 @@ export class App { } favicon.setAttribute('href', faviconHref); + favicon.setAttribute('fetchpriority', 'high'); }); } diff --git a/src/app/core/layout/store-layout/store-header/immersive-store-header.component.html b/src/app/core/layout/store-layout/store-header/immersive-store-header.component.html index f76de46..3904be6 100644 --- a/src/app/core/layout/store-layout/store-header/immersive-store-header.component.html +++ b/src/app/core/layout/store-layout/store-header/immersive-store-header.component.html @@ -1,8 +1,16 @@
-
+
+ @if (showHero() && backgroundImageUrl(); as backgroundImage) { + + } +