Skip to content

Implement Smart Polling De-escalation #830

Description

@koala73

Feature area

News panels / RSS feeds

Description

The app currently polls several endpoints (OpenSky, Oref, etc.) at fixed X-minute intervals.

  • The Issue: If a user leaves the tab open for hours, they continue to hit your API thousands of times.
  • The Proposal: Implement a "Tab Visibility" check in src/services/runtime.ts. If document.visibilityState === 'hidden', increase polling intervals by 5x–10x (e.g., 2m → 20m) or stop them entirely.
  • Result: Significantly lower request volume for long-running sessions.

Problem it solves

Performance / Cost

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions