From 7f1f4a7f896656133741dea1fcec82db60a83c79 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sat, 15 Jun 2024 23:39:12 +0200 Subject: [PATCH] Added missing chronology events to precaching --- TODO.md | 7 ++++--- src/utils/payload.ts | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index 0a35519..cdb3c6d 100644 --- a/TODO.md +++ b/TODO.md @@ -21,7 +21,10 @@ - [Feat] Improve page load speed by using - streaming https://docs.astro.build/en/recipes/streaming-improve-page-performance/ - - ISR https://logsnag.com/blog/implementing-isr-in-astro + - https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API +- [Feat] Continue improving cache system + - Etag? Last-Modified? Cache-control? + - Persistence - [Feat] History replace instead of push when browsing scans and gallery - [Feat] Use subgrid to align the generic previews - [Bugs] [Timeline] Error if collectible not published? @@ -35,8 +38,6 @@ ## Long term -- [Feat] Speed up loading with https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API -- [Feat] Etag? Last-Modified? Cache-control? - [Feat] Explore posibilities for View Transitions - [Feat] Revemp theme system using light-dark https://caniuse.com/mdn-css_types_color_light-dark - [Feat] Add reduce motion to element that zoom when hovering diff --git a/src/utils/payload.ts b/src/utils/payload.ts index 21bdc89..b9e26cd 100644 --- a/src/utils/payload.ts +++ b/src/utils/payload.ts @@ -153,6 +153,8 @@ export const initPayload = async () => { await payload.getImageByID(id); } + await payload.getChronologyEvents(); + payloadInitialized = true; console.log("[ResponseCaching] Precaching completed!", responseCache.size, "responses cached"); }