From 15b706556cb573b082bae8880f21b859babd26c5 Mon Sep 17 00:00:00 2001 From: Bertrand Zuchuat Date: Tue, 24 Nov 2026 08:09:06 +0100 Subject: [PATCH] perf: lazy-load book covers in the search results The results grid shows up to 36 books per page, and every cover was downloaded as soon as the page rendered. Covers now use native loading="lazy", so the browser only fetches those near the viewport, and decoding="async" so decoding does not block rendering. The cover on the book detail page and the logo stay eager: they are visible as soon as the page opens. Co-Authored-by: Bertrand Zuchuat --- src/app/features/books/book.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/features/books/book.ts b/src/app/features/books/book.ts index f0f522a..c4c1a43 100644 --- a/src/app/features/books/book.ts +++ b/src/app/features/books/book.ts @@ -17,6 +17,8 @@ import { OpenLibraryRecord } from './model/open-library.model'; } @else {