Skip to content

Conversation

@kylerm42
Copy link

@kylerm42 kylerm42 commented Jun 2, 2025

I, like probably many others, am using Glance as a home page and new tab page. The search bar is where I start most of my navigation (hence #706), but I am frequently waiting for widgets to refresh before anything shows up. This PR aims to address some of these issues and ensure page loads are speedy every time.

  • Predictive Widget Refresh

    • Updates widgets that are outdated OR will become outdated before the next refresh cycle
    • Prevents widgets from being stale when users visit pages
    • Example: With 15min refresh interval, a widget expiring in 5min gets updated proactively
  • Configurable

    • background-refresh-enabled (default: false) - opt-in
    • background-refresh-interval (default: 15m) - customizable refresh frequency
  server:
    background-refresh-enabled: true
    background-refresh-interval: 10m

@gitnew12
Copy link

gitnew12 commented Oct 15, 2025

This is awesome. Another improvement is load widgets dynamically similar to getHomepage.

Load the dashboard instantly but for custom-api widgets, allow for empty <div> placeholders while API data is being fetched. Once request is processed, inject data into the placeholder <div>s. With the option to refresh the specific custom-api widgets on an interval.

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.

2 participants