Skip to content

Reduce live ESPN refresh latency - #55

Open
avatarneil wants to merge 1 commit into
mainfrom
optimize-espn-live-refresh
Open

avatarneil wants to merge 1 commit into
mainfrom
optimize-espn-live-refresh

Conversation

@avatarneil

Copy link
Copy Markdown
Owner

Live scores currently compound a 10-second browser poll with a 5-second shared cache, so an ESPN update can take roughly 15 seconds to appear. Selected-game stats now refresh every 3 seconds, the live schedule refreshes every 5 seconds, and both API responses use a 2-second shared cache.

The hooks also refresh immediately when the tab regains focus or the browser reconnects, deduplicate in-flight requests, and keep the last good result visible when a background refresh fails.

Validation:

  • bun run type-check
  • bun run lint (passes with 7 existing warnings)
  • bunx oxfmt --check on changed files
  • bunx next build --webpack
  • Updated Playwright coverage for the 3-second stats cadence, 5-second schedule cadence, 60-second pregame cadence, and reconnect refresh

@vercel

vercel Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nfl-playoff-bracket Ready Ready Preview Sep 14, 2026 4:00am UTC

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant