From eebd764a180ba2fb6c1bc00a5278bc88723b531e Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Mon, 15 Jun 2026 11:45:36 -0700 Subject: [PATCH] Speed up feed loading --- src/app/feeds.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/feeds.ts b/src/app/feeds.ts index f743f19d..1f57f6eb 100644 --- a/src/app/feeds.ts +++ b/src/app/feeds.ts @@ -18,7 +18,7 @@ import { now, on, sortBy, - WEEK, + MONTH, YEAR, } from "@welshman/lib" import { @@ -122,7 +122,7 @@ export const makeFeed = ({ const controller = new AbortController() const events = writable([]) - let interval = int(WEEK) + let interval = int(MONTH) let buffer = sortEventsDesc(getEventsForUrl(url, filters)) let backwardWindow = [at - interval, at] let forwardWindow = [at, at + interval] @@ -213,7 +213,7 @@ export const makeFeed = ({ if (events.length === 0) { interval = Math.round(interval * 1.1) } else { - interval = int(WEEK) + interval = int(MONTH) } } @@ -280,7 +280,7 @@ export const makeCalendarFeed = ({ element: HTMLElement onExhausted?: () => void }) => { - const interval = int(5, WEEK) + const interval = int(5, MONTH) const controller = new AbortController() let exhaustedScrollers = 0